/* Auth Pages Styles */
body.auth-body {
    background-color: #F3F4F6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 1000px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    /* Split Layout */
    overflow: hidden;
    min-height: 600px;
    /* Increased for consistency */
    margin: 20px 0;
    /* Add margin to ensure space at bottom/top on small screens */
}

/* Left Panel - Branding */
.auth-left {
    flex: 1;
    background: #6C3CE1;
    padding: 30px;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-left-content h2 {
    font-size: 28px;
    /* Slightly smaller */
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.auth-left-content p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.auth-feature-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-feature-text h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.auth-feature-text p {
    margin: 3px 0 0;
    font-size: 12px;
    opacity: 0.8;
}

/* Right Panel - Form */
.auth-right {
    flex: 1;
    padding: 20px;
    /* Reduced form padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-container-single {
    max-width: 460px;
    min-height: 0;
}

.auth-right-single {
    flex: none;
    width: 100%;
    padding: 32px 48px 40px;
}

.auth-form-shell {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.auth-form-shell form,
.auth-form-shell .alert,
.auth-form-shell .auth-footer,
.auth-form-shell .auth-info-box,
.auth-form-shell .auth-card-header,
.auth-form-shell .auth-helper-text {
    width: 80%;
}

.auth-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto 28px;
    text-align: center;
}

.auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6C3CE1, #8B5CF6);
    color: #FFFFFF;
    font-size: 26px;
    box-shadow: 0 14px 30px rgba(108, 60, 225, 0.22);
}

/* Original auth styles adapted */
.auth-logos {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.auth-logo-img {
    height: 60px; /* Reduced from 90px to match screenshot */
    width: auto;
    object-fit: contain;
}

/* Logo Separator */
.logo-sep {
    height: 30px;
    width: 1px;
    background-color: #D1D5DB;
    display: inline-block;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    text-align: center;
}

.auth-subtitle {
    font-size: 14px;
    color: #6B7280;
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.55;
    text-align: center;
}

.auth-info-box {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: left;
    margin-bottom: 24px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
    background: #FFFFFF;
}

.password-field-wrap {
    position: relative;
}

.password-field-wrap .form-control {
    padding-right: 44px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6B7280;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    padding: 0;
}

.password-toggle-btn:hover {
    color: #374151;
}

.password-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.15);
}

.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    padding-left: 42px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 16px;
}

.form-control:focus {
    border-color: #6C3CE1;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.1);
}

.btn-primary {
    display: block;
    width: 100%;
    background-color: #6C3CE1;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #8B5CF6;
}

.auth-footer {
    margin-top: 30px;
    font-size: 14px;
    color: #6B7280;
    text-align: center;
}

.auth-link {
    color: #6C3CE1;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-helper-text {
    margin: -6px auto 20px;
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

/* Back Link Style */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4B5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 36px;
    transition: color 0.2s;
    align-self: flex-start;
}

.back-link:hover {
    color: #111827;
}

.btn-primary {
    display: block;
    width: 100%;
    background-color: #6C3CE1;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px; /* Smoother corners */
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 6px -1px rgba(108, 60, 225, 0.2), 0 2px 4px -1px rgba(108, 60, 225, 0.1);
}

.btn-primary:hover {
    background-color: #8B5CF6;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(108, 60, 225, 0.3);
}

.alert {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
}

.alert-danger {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-success {
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        max-width: 480px;
    }

    .auth-left {
        display: none;
        /* Hide left panel on mobile */
    }

    .auth-right {
        padding: 30px 24px;
    }

    .auth-right-single {
        padding: 24px;
    }
}
