.auth-page {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background: #161616;
    color: #f3f4f6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
}

.auth-wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: auto;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.auth-brand i {
    font-size: 16px;
    color: #6366f1;
}

.auth-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    background: #262626;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #333333;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.auth-card {
    width: 100%;
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 24px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-tabs {
    display: flex;
    background: #171717;
    border: 1px solid #262626;
    border-radius: 6px;
    padding: 3px;
    position: relative;
    gap: 3px;
}

.auth-tab {
    flex: 1;
    height: 34px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-tab.active {
    color: #ffffff;
    font-weight: 600;
}

.auth-tab-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: 34px;
    background: #282828;
    border: 1px solid #383838;
    border-radius: 5px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.auth-tab-slider.right {
    transform: translateX(100%);
}

.auth-forms-wrapper {
    width: 100%;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.auth-form.active {
    display: flex;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: #a3a3a3;
    display: block;
}

.input-control {
    position: relative;
    display: flex;
    align-items: center;
    background: #252525;
    border: 1px solid #333333;
    border-radius: 6px;
    height: 42px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-control:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
    background: #282828;
}

.input-control.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.input-control .input-icon {
    position: absolute;
    left: 13px;
    color: #737373;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.input-control input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: #f3f4f6;
    font-size: 14px;
    padding-left: 38px !important;
    padding-right: 14px;
    outline: none;
    font-family: inherit;
}

.input-control input::placeholder {
    color: #555555;
}

.input-control input:-webkit-autofill,
.input-control input:-webkit-autofill:hover, 
.input-control input:-webkit-autofill:focus, 
.input-control input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #252525 inset !important;
    -webkit-text-fill-color: #f3f4f6 !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #f3f4f6 !important;
}

.input-control .password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #737373;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: color 0.15s ease;
    z-index: 3;
}

.input-control .password-toggle:hover {
    color: #f3f4f6;
}

.field-hint {
    font-size: 11px;
    color: #737373;
    line-height: 1.35;
    padding-left: 2px;
}

.password-strength {
    display: flex;
    gap: 4px;
    height: 3px;
    margin-top: 4px;
    padding: 0 2px;
}

.strength-bar {
    flex: 1;
    height: 100%;
    background: #333333;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.strength-bar.weak { background: #ef4444; }
.strength-bar.medium { background: #f59e0b; }
.strength-bar.strong { background: #22c55e; }

.form-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #9ca3af;
}

.checkbox-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: #9ca3af;
}

.checkbox-wrap input {
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
    cursor: pointer;
    border-radius: 4px;
}

.checkbox-wrap.terms {
    font-size: 12px;
    line-height: 1.4;
    color: #888888;
}

.checkbox-wrap.terms a {
    color: #6366f1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkbox-wrap.terms a:hover {
    color: #818cf8;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    border-radius: 6px;
    background: #6366f1;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #4f46e5;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    margin-top: 4px;
}

.auth-submit:hover {
    background: #4f46e5;
    border-color: #4338ca;
}

.auth-submit:active {
    transform: scale(0.99);
}

.auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-card-footer {
    padding-top: 14px;
    border-top: 1px solid #282828;
    text-align: center;
    font-size: 13px;
    color: #888888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.switch-link {
    background: none;
    border: none;
    color: #6366f1;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.switch-link:hover {
    color: #818cf8;
    text-decoration: underline;
}

.verify-header {
    margin-bottom: 12px;
}

.verify-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.verify-header p {
    font-size: 13px;
    color: #9ca3af;
}

.verify-header span {
    color: #6366f1;
    font-weight: 600;
}

.verify-spam-alert {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    margin-bottom: 14px;
}

.verify-spam-alert i {
    margin-top: 2px;
    font-size: 13px;
    flex-shrink: 0;
}

.verify-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

.verify-btn-link {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    transition: color 0.15s ease;
}

.verify-btn-link:hover:not(:disabled) {
    color: #ffffff;
}

.verify-btn-link:disabled {
    color: #555555;
    cursor: not-allowed;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #666666;
}

.auth-footer a {
    color: #666666;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-footer a:hover {
    color: #9ca3af;
}

.auth-footer .dot {
    opacity: 0.5;
}

@media (max-width: 440px) {
    .auth-page {
        padding: 16px 12px;
    }
    .auth-card {
        padding: 20px 16px;
    }
}