/* =========================
   GLOBAL RESET & VARIABLES
========================= */
/* auth.css */
:root {
    --primary: #6d5dfc;
    --primary-dark: #5b4ee6;
    --secondary: #8b7bff;
    --bg-gradient: linear-gradient(135deg, #6d5dfc, #8b7bff);
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --card-bg: #ffffff;
    --success: #22c55e;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display:flex
    align-items: column;

}
.authdisplay{
    min-height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}
/* =========================
   CONTAINER
========================= */
.container {
    width: 100%;
    max-width: 440px;
    padding: 1.5rem;
}

/* =========================
   AUTH CARD
========================= */
.auth-card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 2.2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
    animation: fadeIn 0.4s ease;
}

.auth-card.hidden {
    display: none;
}

/* =========================
   HEADER / LOGO
========================= */
.auth-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.auth-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.auth-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* =========================
   FORM ELEMENTS
========================= */
.form-group {
    margin-bottom: 1.2rem;
}

.form-row {
    display: flex;
    gap: 0.8rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

input,
select {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    outline: none;
    transition: 0.2s ease;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(109, 93, 252, 0.15);
}

/* =========================
   OPTIONS ROW
========================= */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkbox input {
    width: auto;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* =========================
   PRIMARY BUTTON
========================= */
.btn-primary {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    border: none;
    background: var(--bg-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(109, 93, 252, 0.35);
}

/* =========================
   FOOTER LINKS
========================= */
.form-footer {
    text-align: center;
    margin-top: 1.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* =========================
   OTP INPUTS
========================= */
.otp-inputs {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.otp-input,
.otp-input-reset {
    width: 44px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.otp-input:focus,
.otp-input-reset:focus {
    border-color: var(--primary);
}

/* =========================
   PASSWORD STRENGTH
========================= */
.password-strength {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =========================
   TOAST NOTIFICATION
========================= */
/* Toast Notification Styles */
.toast {
    visibility: hidden;
    min-width: 300px;
    max-width: 90%;
    margin: 0 auto;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.toast.success {
    background-color: #10b981;
    color: white;
}

.toast.error {
    background-color: #ef4444;
    color: white;
}

.toast.warning {
    background-color: #f59e0b;
    color: white;
}

.toast.info {
    background-color: #3b82f6;
    color: white;
}

/* Toast close button */
.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Toast progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    width: 100%;
    border-radius: 0 0 8px 8px;
}

.toast-progress.active {
    animation: progress 3s linear forwards;
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.6rem;
    }

    .form-row {
        flex-direction: column;
    }
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.checkbox-label input {
    width: auto;
}
