/* ==========================================
   Auth Pages — Card Layout with Hero Image
   Matches Next.js app/users/login + register
   ========================================== */

.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Public Sans', sans-serif;
    background: #f8f5f5;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 3rem;
    /* Reduced top padding from 3rem to 1.5rem */
}

.auth-card-container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    min-height: 600px;
}

.auth-card-register {
    min-height: 700px;
}

/* Hero Panel */
.auth-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    color: #fff;
}

.auth-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
}

.auth-hero-content {
    position: relative;
    z-index: 10;
}

.auth-hero-content h1 {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 2rem;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.auth-feature-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-feature-icon .material-symbols-outlined {
    font-size: 1.25rem;
    color: #fff;
}

.auth-features h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.auth-features p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

/* Form Panel */
.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 3rem 2rem 4rem;
    background: #fff;
    /* Remove redundant scrollbar */
    overflow-y: visible;
    max-height: none;
}

.auth-form-inner {
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    color: #ff0000;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: #b91c1c;
}

.auth-back-link .material-symbols-outlined {
    margin-right: 0.25rem;
    font-size: 1.125rem;
    transition: transform 0.2s;
}

.auth-back-link:hover .material-symbols-outlined {
    transform: translateX(-4px);
}

.auth-form-header h2 {
    font-size: 1.875rem;
    font-weight: 900;
    color: #111827;
    margin: 0 0 0.5rem;
}

.auth-form-header p {
    color: #6b7280;
    margin: 0;
    font-size: 1rem;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.label-row label {
    margin-bottom: 0;
}

.forgot-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff0000;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.25rem;
    pointer-events: none;
}

.auth-page-wrapper .input-with-icon input,
.auth-page-wrapper .input-with-icon select.select-with-icon {
    width: 100% !important;
    padding: 0.75rem 0.75rem 0.75rem 2.75rem !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    color: #111827 !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.input-with-icon input:focus,
.input-with-icon select.select-with-icon:focus {
    border-color: #ff0000;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.15);
}

.select-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.toggle-password.suxali-btn.suxali-btn--icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #111827;
}

.toggle-password.suxali-btn.suxali-btn--icon .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Phone input */
.phone-input-row.suxali-input.with-icon {
    display: flex;
    gap: 0.5rem;
}

.phone-prefix.suxali-input.with-icon {
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: #111827;
    outline: none;
    width: auto !important;
}

.phone-prefix:focus {
    border-color: #ff0000;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.15);
}

.phone-number.suxali-input.with-icon {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: #111827;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-number:focus {
    border-color: #ff0000;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.15);
}

/* Checkbox rows */
.remember-row,
.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.auth-checkbox {
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    accent-color: #ff0000;
    border-radius: 4px;
    flex-shrink: 0;
}

.remember-row label,
.terms-row label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 0;
}

.terms-link {
    color: #ff0000;
    font-weight: 700;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Input */
.suxali-input {
    width: 100%;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: #111827;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Submit button */
.auth-submit-btn.suxali-btn {
    width: 100%;
    padding: 1rem;
    background: #ff0000;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
    transition: all 0.2s;
    font-family: inherit;
}

.auth-submit-btn.suxali-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.auth-submit-btn.suxali-btn:active {
    transform: scale(0.98);
}

/* Switch link */
.auth-switch-link {
    text-align: center;
    margin-top: 2.5rem;
}

.auth-switch-link p {
    color: #6b7280;
    font-size: 0.875rem;
}

.auth-switch-link a {
    color: #ff0000;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch-link a:hover {
    text-decoration: underline;
}

/* Trust badges */
.auth-trust-badges {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: #6b7280;
    opacity: 0.6;
}

.auth-trust-badges .material-symbols-outlined {
    font-size: 1.5rem;
}

/* Responsive */
.hidden-mobile {
    display: flex;
}

@media (max-width: 1024px) {
    .hidden-mobile {
        display: none !important;
    }

    .auth-card-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .auth-form-panel {
        padding: 2rem 1.5rem;
    }
}