/* assets/css/register.css */
/* Sama macam login.css tapi boleh tambah style khusus */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.03) 0%, transparent 70%);
}

.auth-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 28px;
    max-width: 440px;
    width: 100%;
    padding: 2.8rem 2.2rem;
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .brand-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--bg);
    font-family: 'Playfair Display', serif;
    margin: 0 auto 0.8rem;
}

.auth-header .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form .form-group {
    margin-bottom: 1.2rem;
}

.auth-form label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 0.8rem 1.4rem;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
}

.auth-form input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.auth-form .hint {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-top: 4px;
    display: block;
}

.auth-form .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer .link {
    color: var(--gold);
    font-weight: 500;
    cursor: pointer;
}

.auth-footer .link:hover {
    color: var(--gold-light);
}

.msg {
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: none;
}

.msg.error {
    color: #d47a7a;
    background: rgba(212, 122, 122, 0.08);
    display: block;
}

.msg.success {
    color: #6fcf97;
    background: rgba(111, 207, 151, 0.08);
    display: block;
}

.back-link {
    text-align: center;
    margin-top: 1rem;
}

.back-link a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-link a:hover {
    color: var(--gold);
}

@media (max-width: 480px) {
    .auth-box {
        padding: 2rem 1.2rem;
    }
}

/* Tambah di hujung fail login.css dan register.css */

/* Light mode support */
[data-theme="light"] .auth-container {
    background: #f5f0eb;
}

[data-theme="light"] .auth-box {
    background: #ffffff;
}

[data-theme="light"] .auth-form input {
    background: #f0ece7;
    color: #1a1a1a;
}

[data-theme="light"] .auth-form input::placeholder {
    color: #8a8a8a;
}

[data-theme="light"] .admin-creds {
    background: #f0ece7;
}

[data-theme="light"] .auth-footer {
    color: #4a4a4a;
}

[data-theme="light"] .auth-footer .link {
    color: var(--gold);
}

[data-theme="light"] .auth-header p {
    color: #4a4a4a;
}

[data-theme="light"] .msg.error {
    background: rgba(212, 122, 122, 0.1);
}

[data-theme="light"] .msg.success {
    background: rgba(111, 207, 151, 0.1);
}