/* ============================================================
  GENESIS - AUTHENTICATION STYLESHEET (SIMPLE FADE DESIGN)
============================================================ */

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Main Auth Page Structure */
.auth-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    overflow: hidden;
}

.auth-container {
    width: 100%;
    max-width: 840px;
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    background: color-mix(in srgb, var(--bg-primary) 50%, transparent);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: scaleUp 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Left Panel: Animated Visual */
.auth-visual-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    border-radius: 24px 0 0 24px;
}
.visual-orb-container { 
    width: 220px; 
    height: 220px; 
    perspective: 1000px; 
}
#auth-orb { 
    width: 100%; 
    height: 100%; 
    transform-style: preserve-3d; 
    animation: rotate-orb 30s linear infinite;
    position: relative;
}
@keyframes rotate-orb { 
    from { transform: rotateY(0deg) rotateX(10deg); } 
    to { transform: rotateY(360deg) rotateX(10deg); } 
}
.orb-ring { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: 1.5px solid; 
    border-radius: 50%; 
    transform-style: preserve-3d;
    opacity: 0.6;
}


/* ===== SIMPLE FADE-IN SYSTEM ===== */
.auth-form-panel {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
}

.auth-card {
    display: none; /* Sab cards ko by default chupao */
    flex-direction: column;
    flex-grow: 1;
}

.auth-card.is-active {
    display: flex; /* Sirf active card ko dikhao */
    animation: fadeIn 0.5s ease-out forwards; /* Fade-in animation lagao */
}


/* ===== FORM ELEMENTS ===== */
.auth-header { text-align: left; margin-bottom: 2rem; }
.auth-header .logo { margin-bottom: 1rem; font-size: 1.6rem; }
.auth-header h1 { font-size: 1.8rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.auth-header p { color: var(--text-secondary); font-size: 0.95rem; }

.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.input-wrapper { position: relative; }
.input-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--text-secondary);
    transition: color 0.3s;
}
.form-group input {
    width: 100%; padding: 12px 16px 12px 42px;
    border-radius: 8px; border: 1px solid var(--border-color);
    background-color: color-mix(in srgb, var(--text-primary) 5%, transparent);
    color: var(--text-primary);
    font-size: 1rem; transition: all 0.3s ease;
}
.form-group input:focus {
    outline: none; border-color: var(--accent-start);
    background-color: transparent;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-start) 20%, transparent);
}
.form-group input:focus ~ .input-icon { color: var(--accent-start); }

.form-options { text-align: right; margin-top: -0.5rem; }
.auth-link {
    color: var(--accent-start); 
    text-decoration: none;
    font-weight: 600; 
    font-size: 0.9rem; 
    cursor: pointer;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-footer { 
    text-align: center; 
    margin-top: auto;
    padding-top: 1.5rem; 
    font-size: 0.9rem; 
    /* UPDATED: border-top wali line hata di hai */
}

/* === BUTTON STYLES === */
.btn.btn-social {
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
}
.btn.btn-social:hover {
    background-color: color-mix(in srgb, var(--text-primary) 5%, var(--bg-secondary));
    border-color: color-mix(in srgb, var(--text-primary) 20%, var(--border-color));
}

.btn-full {
    width: 100%;
    cursor: pointer;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}
.auth-divider:not(:empty)::before { margin-right: .5em; }
.auth-divider:not(:empty)::after { margin-left: .5em; }

/* ===== NEW STYLES FOR FORM ROW AND PASSWORD TOGGLE ===== */

/* Style for First Name / Last Name row */
.form-row {
    display: flex;
    gap: 1rem;
}
.form-row .form-group {
    flex: 1; /* Each group takes equal width */
}

/* Remove left padding and icon from inputs inside a form-row */
.form-row .input-wrapper input {
    padding-left: 16px;
}
.form-row .input-wrapper .input-icon {
    display: none;
}


/* Hides the default "eye" icon in Microsoft Edge */
input[type="password"]::-ms-reveal {
    display: none;
}

/* Hides the default "eye" icon in WebKit browsers (Chrome, Safari) */
input[type="password"]::-webkit-password-reveal-button {
    display: none;
    -webkit-appearance: none;
}

/*
============================================================
  STYLING FOR CUSTOM PASSWORD VISIBILITY ICON
============================================================
*/

/* Styles the button that holds the eye icon */
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: grid;
    place-items: center;
    color: var(--text-secondary); /* Uses theme color, works in light/dark mode */
    transition: color 0.3s;
}

/* Changes color on hover for better user feedback */
.password-toggle:hover {
    color: var(--text-primary);
}

/* Sets the size of the SVG icons inside the button */
.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Adds space on the right side of the password input field so text doesn't go under the icon */
.input-wrapper input[type="password"] {
    padding-right: 44px;
}

/* ===== RESPONSIVENESS ===== */
@media (max-width: 840px) {
    .auth-container { 
        grid-template-columns: 1fr; 
        max-width: 450px;
    }
    .auth-visual-panel { display: none; }
    .auth-form-panel { border-radius: 24px; padding: 2.5rem; }
    .auth-header { text-align: center; }
}

@media (max-width: 576px) {
    .auth-page-wrapper { padding: 1rem; }
    .auth-form-panel { padding: 2rem 1.5rem; }
    .auth-header h1 { font-size: 1.6rem; }
}