/* Login Success Modal Styles */
.login-success-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.login-success-modal-overlay.active {
    display: flex;
}

.login-success-modal-overlay.closing {
    animation: fadeOut 0.3s ease forwards;
}

.login-success-modal-overlay.closing .login-success-modal {
    animation: modalSlideOut 0.3s ease forwards;
}

.login-success-modal {
    background: linear-gradient(135deg, rgba(20, 15, 10, 0.95) 0%, rgba(30, 25, 20, 0.95) 100%);
    border-radius: 12px;
    padding: 60px 50px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.4);
    animation: modalSlideIn 0.5s ease;
    position: relative;
}

.login-success-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/font-bg.jpg') center/cover;
    opacity: 0.03;
    border-radius: 12px;
    pointer-events: none;
}

/* Checkmark Animation */
.login-success-checkmark {
    width: 120px;
    height: 120px;
    margin: 0 auto 35px;
    position: relative;
}

.login-success-checkmark-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.9);
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.5s ease;
}

.login-success-checkmark-check {
    width: 120px;
    height: 120px;
    position: absolute;
    top: 0;
    left: 0;
}

.login-success-checkmark-check svg {
    width: 100%;
    height: 100%;
}

.login-success-checkmark-check path {
    stroke: rgba(255, 255, 255, 0.95);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawCheck 0.6s ease 0.5s forwards;
}

.login-success-modal-text {
    color: #f0e7d9;
    font-size: 26px;
    font-weight: 600;
    margin: 0;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.2);
    position: relative;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modalSlideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-50px);
        opacity: 0;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .login-success-modal {
        padding: 50px 35px;
    }

    .login-success-checkmark {
        width: 100px;
        height: 100px;
    }

    .login-success-checkmark-circle {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    .login-success-checkmark-check {
        width: 100px;
        height: 100px;
    }

    .login-success-checkmark-check path {
        stroke-width: 6;
    }

    .login-success-modal-text {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .login-success-modal {
        padding: 40px 25px;
    }

    .login-success-checkmark {
        width: 90px;
        height: 90px;
        margin-bottom: 25px;
    }

    .login-success-checkmark-circle {
        width: 90px;
        height: 90px;
    }

    .login-success-checkmark-check {
        width: 90px;
        height: 90px;
    }

    .login-success-checkmark-check path {
        stroke-width: 5;
    }

    .login-success-modal-text {
        font-size: 20px;
    }
}
