/* =========================================
   Auth Container & Layout
   ========================================= */
/* FORM SHOULD USE FULL RIGHT WIDTH */



.auth-selector {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-left,
.auth-right {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
}

.auth-left {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
  
}

.auth-right {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: #F7FAFF;
    padding: 40px 20px;
    
}

.auth-left img {
    max-width: 80%;
}

.auth-left img.auth-logo {
    width: 100%;
    max-width: 350px;
    height: auto;
}

/* =========================================
   Auth Fields (Inputs)
   ========================================= */

   .auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    height: auto; /* Let content determine height */
    min-height: 0; /* Remove any min-height constraints */
}

.auth-field label {
    display: block;
    text-align: left;
    margin-bottom: 0;
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    color: #4F4F4F;
    line-height: 1.2;
    /* Remove fixed min-height */
    min-height: 0;
    /* Ensure consistent wrapping */
    white-space: normal;
    word-break: break-word;
}

.auth-field input {
    width: 100%;
    height: 46px; /* Fixed height for all inputs */
    border-radius: 8px;
    border: 1px solid var(--color-primary-900);
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-black-900);
    box-sizing: border-box;
    flex-shrink: 0; /* Prevent input from shrinking */
}
.auth-field textarea {
    width: 100%;
    min-height: 130px;
    border-radius: 4px;
    border: 1px solid var(--color-primary-900); /* Changed to match input border color */
    background: #fff;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-black-900);
    box-sizing: border-box;
    resize: vertical; /* Allow vertical resizing only */
}



.auth-field input::placeholder {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    color: var(--color-black-400);
}

.auth-field.gray input {
    background: var(--color-light-bg);
    border: none;
}

.auth-field input[type="password"] {
    background: var(--color-white);
    letter-spacing: 2px;
    font-family: 'password', monospace;
}

.auth-field input[type="password"]::placeholder {
    color: #828282;
    letter-spacing: 3px;
    font-family: 'password', monospace;
}

.auth-field a {
    text-decoration: none;
    color: #4F4F4F;
}

.auth-field--input-only label {
    display: none;
}

/* =========================================
   Account Selection Cards
   ========================================= */

.account-select {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.select-card {
    width: 160px;
    min-height: 200px;
    border: 2px solid var(--color-primary-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    background: #fff;
}

.select-card img {
    width: 70px;
    margin-bottom: 20px;
    position: relative;
}

.select-card p {
    font-weight: 600;
}

/* Card Image with Ellipse */
.card-image {
    position: relative;
    margin-bottom: 10px;
}

.card-image img {
    width: 70px;
}

.card-image::after {
    content: "";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 1px;
    background: #4F4F4F;
}

/* Check Circle */
.select-card .check {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--color-primary-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #22c55e;
}

.select-card.active .check {
    background: #22c55e;
    color: #fff;
}

.select-card.active .check::after {
    content: "✓";
    font-weight: bold;
}

/* =========================================
   Buttons & Actions
   ========================================= */

/* Base Button Styles */
.login-btn,
.auth-btn {
  
    width: 100%;
    max-width: 500px;
    min-height: 56px;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

/* Primary Button */
.login-btn,
.auth-btn.primary {
    background: var(--color-primary-900);
    color: #fff;
}

.login-btn:hover {
    background: var(--color-primary-500);
}

/* Outline Button */
.theme_btn.outline,
.auth-btn.outline {
    background: transparent;
    border: 2px solid #000;
    color: #000;
}

/* Social Button */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 409px;
    height: 61px;
    margin: 20px auto 0 auto;
    border-radius: 8px;
    padding: 20.5px 25.22px;
    gap: 15.77px;
    background: #ffffff;
    box-shadow: 1px -1px 10px 0px #0000001F;
    text-decoration: none;
    color: #4F4F4F;
    font-weight: 600;
    font-size: 16px;
    box-sizing: border-box;
}

.social-btn img {
    width: 20px;
    height: 20px;
}

/* Action Container */
.auth-actions {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =========================================
   Auth Options Cards
   ========================================= */

.auth-options {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.auth-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    width: 220px;
}

.auth-card img {
    width: 90px;
    margin-bottom: 15px;
}

.auth-card h4 {
    margin-bottom: 15px;
}

/* =========================================
   Typography & Links
   ========================================= */

.auth-info {
    margin-bottom: 70px;
    color: #4F4F4F;
    font-weight: 500;
    font-size: clamp(20px, 4vw, 32px);
    line-height: 1.2;
}

.already-account {
    text-align: center;
    margin: 16px auto 0 auto;
    font-size: 14px;
    color: #4F4F4F;
}

.already-account a {
    color: var(--color-primary-900);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

/* =========================================
   Steps Indicator
   ========================================= */

.auth-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 650px;
    margin: 0 auto 50px;
    position: relative;
}

.auth-steps::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(80px);
    right: calc(80px);
    height: 4px;
    background: #ddd;
    z-index: 1;
    transform: translateY(-50%);
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step span {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 0.5px solid var(--color-primary-900);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #4F4F4F;
    margin: 0 auto;
    z-index: 2;
}

.step.active span,
.step.completed span {
    background: var(--color-primary-400);
    color: #fff;
    border: none;
}

.step .active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 60%;
    width: calc(100% - 40px);
    height: 4px;
    background: var(--color-primary-400);
    z-index: 0;
    transform: translateY(-50%);
}

.step:last-child::after,
.step:not(.completed):not(.active)::after {
    display: none;
}

/* =========================================
   Form Grid Layout
   ========================================= */


/* Default = Desktop */
.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    align-items: start; /* Align items to top */
}

/* Make all auth-field elements in the grid have equal height containers */
.auth-form-grid .auth-field {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
}

/* Ensure labels take only needed space */
.auth-form-grid .auth-field label {
    flex-shrink: 0; /* Don't shrink label */
    height: auto;
    min-height: 0;
    margin-bottom: 6px;
}

/* Ensure inputs are consistent */
.auth-form-grid .auth-field input {
    flex-shrink: 0;
    height: 46px;
}


.login-btn {
    width: 60%;
    margin: 100px auto 0 auto;
    height: 45px;
    gap: 10px;
    font-size: 24px;
    font-weight: 500;
    background: var(--color-primary-500);
    border: none;
}

/* =========================================
   Responsive Design
   ========================================= */
   @media (max-width: 892px) {
    .auth-form-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .auth-form-grid .auth-field {
        width: 100%;
        min-height: auto;
    }
    
    .auth-field label {
        min-height: auto;
        margin-bottom: 4px;
        font-size: 0.875rem;
    }
    
    .auth-field input {
        height: 46px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .auth-field {
        height: auto;
        min-height: 0;
        display: flex; /* Use flexbox instead of grid for simpler control */
        flex-direction: column;
        gap: 4px;
    }
    
    .auth-field label {
        font-size: 0.875rem;
        min-height: 0;
        margin-bottom: 2px;
        height: auto;
    }
    
    .auth-field input {
        height: 46px;
        width: 100%;
    }
    
    .auth-selector {
        flex-direction: column;
    }

    .auth-left,
    .auth-right {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
   
    .login-btn {
        min-height: 52px;
        padding: 16px 20px;
        font-size: 0.875rem;
    }

    .account-select {
        gap: 16px;
    }

    .select-card {
        width: 140px;
    }

    .select-card img {
        width: 60px;
    }

 
    
}

@media (max-width: 450px) {
    .auth-actions {
        max-width: 100%;
    }

    .login-btn {
        width: 100%;
        font-size: 16px;
    }

    .social-btn {
        max-width: 90%;
        height: 50px;
        padding: 16px 20px;
        font-size: 14px;
        gap: 10px;
    }

    .social-btn img {
        width: 18px;
        height: 18px;
    }
}