* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.auth-brand-link {
    text-decoration: none;
    color: inherit;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fdf6f0 0%, #f7e9dd 100%);
}

.auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-brand-icon {
    font-size: 36px;
    display: inline-block;
    margin-bottom: 8px;
}

.auth-logo-img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.auth-brand-logo {
    height: 56px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
}

.auth-brand h1 {
    font-size: 24px;
    color: #2b2b2b;
    margin: 0 0 6px;
}

.auth-brand p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

.auth-alert {
    background: #fdecea;
    color: #c0392b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
    text-align: center;
}

.auth-success {
    background: #eaf7ec;
    color: #2e7d32;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
    text-align: center;
}

.dev-otp-note {
    background: #fff8e1;
    color: #8a6d00;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 18px;
    text-align: center;
    border: 1px dashed #e0c56b;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.otp-box {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 1px solid #e0d8d0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.otp-box:focus {
    border-color: #c9a24b;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-row .form-group {
    flex: 1;
}

.field-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    background: #eee;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    background: #e0b0b0;
    transition: width 0.25s ease, background 0.25s ease;
}

.auth-terms {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.auth-terms input {
    margin-top: 3px;
}

.auth-terms a {
    color: #c9a24b;
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 6px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0d8d0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-form input:focus {
    border-color: #c9a24b;
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    opacity: 0.6;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 22px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    cursor: pointer;
}

.forgot-link {
    color: #c9a24b;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.auth-submit:hover {
    opacity: 0.9;
}

.auth-divider {
    text-align: center;
    margin: 22px 0;
    position: relative;
    color: #aaa;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #eee;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.auth-switch a {
    color: #c9a24b;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-admin-switch {
    text-align: center;
    font-size: 13px;
    color: #888888;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #E5E7EB;
}

.auth-admin-switch a {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-admin-switch a:hover {
    color: #c9a24b;
    text-decoration: underline;
}