/* Ultra Modern Animated Login Page with Book Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: #fef2f2;
}

/* Hide animated book background elements */
body.login-body::before,
body.login-body::after {
    display: none;
}

/* Hide floating book icons */
.book-icon-1,
.book-icon-2,
.book-icon-3,
.book-icon-4 {
    display: none;
}

/* Hide floating pages animation */
.floating-pages {
    display: none;
}

.login-page-container {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Remove book spine and animated border */
.login-page-container::before,
.login-page-container::after {
    display: none;
}

.login-image {
    display: none;
}

.login-form-container {
    padding: 55px 50px;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
}

.login-form-container h2 {
    font-size: 38px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -1px;
    line-height: 1.2;
    position: relative;
}

.login-form-container h2::before,
.login-form-container h2::after {
    display: none;
}

.login-form-container h2 span {
    font-size: 18px;
    color: #000000;
    font-weight: 500;
    display: block;
    margin-top: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0;
}

.signin-link {
    text-align: center;
    margin-bottom: 35px;
    font-size: 14px;
    color: #000000;
    line-height: 1.6;
}

.signin-link a {
    color: #a51c30;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.signin-link a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a51c30, #b91c1c);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.signin-link a:hover {
    color: #b91c1c;
    transform: translateY(-2px);
}

.signin-link a:hover::after {
    width: 100%;
}

.login-form-container .form-group {
    margin-bottom: 24px;
    position: relative;
}

.login-form-container .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #000000;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
    position: relative;
}

.login-form-container .form-group label::before {
    display: none;
}

.login-form-container .form-group:focus-within label {
    color: #a51c30;
}

.login-form-container .form-group:focus-within label::before {
    opacity: 1;
    transform: scale(1.2);
}

.login-form-container .form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #000000;
    font-family: inherit;
    line-height: 1.5;
    position: relative;
}

.login-form-container .form-control:hover {
    border-color: #cbd5e0;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.login-form-container .form-control:focus {
    outline: none;
    border-color: #a51c30;
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(220, 38, 38, 0.1),
        0 8px 20px rgba(220, 38, 38, 0.15);
    transform: translateY(-3px);
}

.login-form-container .form-control::placeholder {
    color: #94a3b8;
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.login-form-container .form-control:focus::placeholder {
    opacity: 0.5;
}

.login-form-container .text-danger {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    display: block;
    font-weight: 500;
    line-height: 1.4;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-form-container .btn-primary {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #a51c30 0%, #b91c1c 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 20px rgba(220, 38, 38, 0.3),
        0 0 0 0 rgba(220, 38, 38, 0.4);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form-container .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.login-form-container .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.login-form-container .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.login-form-container .btn-primary:hover::after {
    left: 100%;
}

.login-form-container .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 30px rgba(220, 38, 38, 0.4),
        0 0 0 8px rgba(220, 38, 38, 0.1);
}

.login-form-container .btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 15px rgba(220, 38, 38, 0.3),
        0 0 0 4px rgba(220, 38, 38, 0.1);
}

.login-form-container .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #a51c30;
}

.forgot-password-link {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: #000000;
}

.forgot-password-link a {
    color: #a51c30;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.forgot-password-link a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a51c30, #b91c1c);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.forgot-password-link a:hover {
    color: #b91c1c;
    transform: translateY(-2px);
}

.forgot-password-link a:hover::after {
    width: 100%;
}

/* Validation Summary */
.login-form-container .text-danger[data-valmsg-summary="true"],
.login-form-container .validation-summary-errors {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #a51c30;
    font-size: 14px;
    line-height: 1.6;
    animation: slideIn 0.4s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-form-container .validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.login-form-container .validation-summary-errors li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.login-form-container .validation-summary-errors li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #a51c30;
    font-weight: bold;
}

/* Input Focus Effects */
.login-form-container .form-control.input-focused {
    border-color: #a51c30;
    box-shadow: 
        0 0 0 4px rgba(220, 38, 38, 0.1),
        0 8px 20px rgba(220, 38, 38, 0.15);
    background: rgba(255, 255, 255, 1);
}

/* Responsive Design */
@media (max-width: 700px) {
    .login-page-container {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .login-form-container {
        padding: 45px 35px;
    }
    
    .login-form-container h2 {
        font-size: 32px;
    }
    
    .login-form-container h2::before,
    .login-form-container h2::after {
        display: none;
    }
    
    .login-form-container h2 span {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body.login-body {
        padding: 0;
        background: #fef2f2;
    }
    
    body.login-body::before,
    body.login-body::after {
        display: none;
    }
    
    .login-form-container {
        padding: 40px 30px;
    }
    
    .login-form-container h2 {
        font-size: 28px;
    }
    
    .login-form-container h2 span {
        font-size: 15px;
    }
    
    .login-form-container .form-control {
        padding: 14px 18px;
    }
    
    .login-form-container .btn-primary {
        padding: 16px 28px;
        font-size: 16px;
    }
    
    .login-form-container .form-group label::before {
        display: none;
    }
    
    .login-form-container .form-group label {
        padding-left: 0;
    }
}

/* Registration Progress Indicator for Login Page */
.login-registration-progress {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(6, 82, 135, 0.08);
    transition: all 0.3s ease;
}

.login-registration-progress:hover {
    box-shadow: 0 6px 20px rgba(6, 82, 135, 0.12);
    transform: translateY(-2px);
}

.progress-header-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.progress-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #065287 0%, #0077ca 100%);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(6, 82, 135, 0.2);
}

.progress-header-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #065287;
    letter-spacing: -0.3px;
}

.progress-header-text p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #64748b;
    direction: rtl;
    text-align: right;
    font-weight: 500;
}

.progress-steps-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.step-item-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    cursor: default;
}

.step-circle:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.step-circle.active {
    background: linear-gradient(135deg, #065287 0%, #0077ca 100%);
    border-color: #065287;
    color: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(6, 82, 135, 0.1),
        0 4px 12px rgba(6, 82, 135, 0.3);
    transform: scale(1.15);
    animation: pulse-active 2s ease-in-out infinite;
}

@keyframes pulse-active {
    0%, 100% {
        box-shadow: 
            0 0 0 4px rgba(6, 82, 135, 0.1),
            0 4px 12px rgba(6, 82, 135, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 6px rgba(6, 82, 135, 0.15),
            0 6px 16px rgba(6, 82, 135, 0.4);
    }
}

.step-label {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.step-item-compact.active .step-label {
    color: #065287;
    font-weight: 700;
    transform: scale(1.05);
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 4px;
    position: relative;
    top: -18px;
    z-index: 1;
    transition: background 0.3s ease;
}

.step-line.completed {
    background: linear-gradient(90deg, #065287 0%, #0077ca 100%);
}

@media (max-width: 600px) {
    .progress-steps-compact {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .step-item-compact {
        min-width: 60px;
    }
    
    .step-line {
        display: none;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}