/* ============================================================
   Auth Pages - Split Screen Premium Design
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    background: #f8fafc;
}

.auth-split {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.auth-image-side {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&q=80&w=1200') center/cover no-repeat;
    position: relative;
    display: none;
}

@media (min-width: 900px) {
    .auth-image-side {
        display: block;
    }
}

.auth-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 20, 26, 0.8) 0%, rgba(99, 102, 241, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.auth-branding {
    color: white;
    max-width: 500px;
    animation: fadeInUp 0.8s ease;
}

.branding-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.auth-branding h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.auth-branding p {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 300;
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 100%;
}

@media (min-width: 900px) {
    .auth-form-side {
        max-width: 600px;
    }
}

.auth-card-modern {
    width: 100%;
    max-width: 440px;
    background: white;
    padding: 3.5rem 3rem;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {
    .auth-card-modern {
        padding: 2.5rem 2rem;
    }
}

.mobile-logo-wrap {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
}

@media (max-width: 899px) {
    .mobile-logo-wrap {
        display: flex;
        justify-content: center;
    }

    .mobile-logo-wrap ion-icon {
        background: linear-gradient(135deg, var(--primary, #10141a), #334155);
        color: white;
        font-size: 2.5rem;
        padding: 1rem;
        border-radius: 20px;
    }
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.form-header p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-group-modern .form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper ion-icon {
    position: absolute;
    left: 1.2rem;
    font-size: 1.3rem;
    color: #94a3b8;
    transition: 0.3s;
    pointer-events: none;
}

.input-wrapper .form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 3.2rem;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 16px;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-wrapper .form-control:focus {
    background: white;
    border-color: #6366f1;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
    outline: none;
}

.input-wrapper .form-control:focus+ion-icon,
.input-wrapper .form-control:not(:placeholder-shown)+ion-icon {
    color: #6366f1;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
    -webkit-text-fill-color: #1e293b !important;
    border-radius: 16px;
}

.auth-btn-modern {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, #10141a, #334155);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.auth-btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(16, 20, 26, 0.25);
    background: linear-gradient(135deg, #000000, #1e293b);
}

.auth-btn-modern ion-icon {
    font-size: 1.4rem;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 1rem;
    color: #64748b;
}

.form-footer a {
    color: #6366f1;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.form-footer a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Checkbox Style */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.forgot-link {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #4f46e5;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: #64748b;
    user-select: none;
    font-weight: 500;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #e2e8f0;
    border-radius: 6px;
    transition: 0.2s;
}

.checkbox-container:hover input~.checkmark {
    background-color: #cbd5e1;
}

.checkbox-container input:checked~.checkmark {
    background-color: #6366f1;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.auth-alert.error {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.auth-alert ion-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.slide-in {
    animation: slideIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Registration specifics */
.auth-split.register .auth-image-side {
    background: url('https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&q=80&w=1200') center/cover no-repeat;
}

.auth-split.register .auth-image-overlay {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.85) 0%, rgba(5, 150, 105, 0.95) 100%);
}

.auth-split.register .auth-btn-modern {
    background: linear-gradient(135deg, #10b981, #059669);
}

.auth-split.register .input-wrapper .form-control:focus {
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.auth-split.register .input-wrapper .form-control:focus+ion-icon,
.auth-split.register .input-wrapper .form-control:not(:placeholder-shown)+ion-icon {
    color: #10b981;
}

.auth-split.register .form-footer a {
    color: #10b981;
}

.auth-split.register .form-footer a:hover {
    color: #059669;
}

/* Success Card */
.auth-success {
    text-align: center;
    padding: 1rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon ion-icon {
    font-size: 3rem;
    color: #059669;
}

.auth-success h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 800;
}

.auth-success p {
    color: #64748b;
    font-size: 1rem;
    margin: 0 0 2rem;
    line-height: 1.6;
}

.info-note {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.2rem;
    background: #f0fdf4;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #166534;
    margin-top: 1.5rem;
    font-weight: 500;
}

.info-note ion-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}