/* ==========================================================================
   Admin Login Page - Modern Glassmorphic Stylesheet
   ========================================================================== */

:root {
    --gold-primary: #ffb703;
    --gold-light: #fed7aa;
    --accent-orange: #fb8500;
    --deep-orange: #d9480f;
    --card-glass: rgba(22, 12, 6, 0.82);
    --border-glass: rgba(255, 183, 3, 0.25);
}

.login-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    background: radial-gradient(circle at 50% 30%, #3a1c0b 0%, #1c0b04 50%, #0a0301 100%);
    overflow: hidden;
}

.ambient-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 133, 0, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    top: 15%;
    left: 20%;
    filter: blur(60px);
    pointer-events: none;
    animation: orbFloat 7s infinite alternate ease-in-out;
}

.ambient-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.16) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    right: 20%;
    filter: blur(70px);
    pointer-events: none;
    animation: orbFloat 6s infinite alternate-reverse ease-in-out;
}

@keyframes orbFloat {
    0% { transform: translateY(0) scale(0.95); }
    100% { transform: translateY(-30px) scale(1.1); }
}

.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    background: var(--card-glass);
    border: 1px solid var(--border-glass);
    border-radius: 26px;
    padding: 45px 36px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(251, 133, 0, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), 0 0 45px rgba(255, 183, 3, 0.28);
}

.brand-icon-box {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px auto;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.25), rgba(251, 133, 0, 0.35));
    border: 1.5px solid rgba(255, 183, 3, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(251, 133, 0, 0.3);
    animation: iconPulse 3s infinite ease-in-out;
}

.brand-icon-box i {
    font-size: 32px;
    color: #ffb703;
    filter: drop-shadow(0 2px 10px rgba(255, 183, 3, 0.7));
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-title {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #fed7aa 40%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: rgba(254, 215, 170, 0.7);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.alert-custom-danger {
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff858d;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

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

.form-label-custom {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fed7aa;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix-icon {
    position: absolute;
    left: 18px;
    color: #fb923c;
    font-size: 17px;
    pointer-events: none;
    transition: color 0.25s ease;
}

.custom-form-input {
    width: 100%;
    height: 52px;
    padding: 10px 48px 10px 50px;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 183, 3, 0.25);
    border-radius: 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease;
    outline: none;
}

.custom-form-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.custom-form-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffb703;
    box-shadow: 0 0 16px rgba(255, 183, 3, 0.35);
}

.input-box:focus-within .input-prefix-icon {
    color: #ffb703;
}

.password-toggle-btn {
    position: absolute;
    right: 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 17px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

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

.error-feedback {
    display: block;
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 6px;
    font-weight: 500;
}

.btn-login-submit {
    width: 100%;
    height: 54px;
    margin-top: 10px;
    background: linear-gradient(135deg, #ff9a3c 0%, #ff6b35 50%, #d84a1b 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(216, 74, 27, 0.45);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(216, 74, 27, 0.6);
    background: linear-gradient(135deg, #ffa654 0%, #ff7947 50%, #e05324 100%);
}

.btn-login-submit:active {
    transform: translateY(1px);
    box-shadow: 0 6px 16px rgba(216, 74, 27, 0.35);
}

.sparkle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleRise 4s infinite linear;
}

@keyframes sparkleRise {
    0% {
        transform: translateY(105vh) scale(0.6);
        opacity: 0;
    }
    25% { opacity: 0.8; }
    100% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 32px 22px;
        border-radius: 20px;
    }
    .login-title {
        font-size: 22px;
    }
    .brand-icon-box {
        width: 62px;
        height: 62px;
    }
    .brand-icon-box i {
        font-size: 26px;
    }
}
