﻿:root {
    /* Lightest Orange / Soft Saffron Page Background Palette */
    --bg-orange-top: #fff7ed;
    --bg-orange-mid: #ffedd5;
    --bg-orange-bottom: #fed7aa;
    /* Temple Accent Colors */
    --primary-saffron: #d97706;
    --dark-saffron: #b45309;
    --temple-gold: #f59e0b;
    --purple-accent: #7e22ce;
    --card-text-main: #1e293b;
    --dt-border-orange: #fdba74;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

body {
    background: linear-gradient(180deg, var(--bg-orange-top) 0%, var(--bg-orange-mid) 50%, var(--bg-orange-bottom) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100vh;
    padding: 20px 15px;
}

/* =============================================================
   LOGIN CARD CONTAINER
============================================================= */
.login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(217, 119, 6, 0.12), 0 5px 15px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(253, 186, 116, 0.6);
    overflow: hidden;
    width: 100%;
    max-width: 410px;
    position: relative;
    z-index: 2;
}

.login-header {
    background: #ffffff;
    text-align: center;
    padding: 24px 20px 8px;
}

/* =============================================================
   CIRCULAR LOGO CONTAINER & ANIMATED SHADOW
============================================================= */
.brand-logo-container {
    width: 85px;
    height: 85px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle, #1c1929 0%, #08070e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.2), inset 0 -2px 5px rgba(0, 0, 0, 0.8), 0 8px 20px rgba(217, 119, 6, 0.25);
    border: 2px solid rgba(217, 119, 6, 0.6);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.35s ease;
    cursor: pointer;
    overflow: hidden;
}

    .brand-logo-container::before {
        content: '';
        position: absolute;
        inset: -6px;
        z-index: -1;
        border-radius: 50%;
        background: linear-gradient(var(--shadow-angle, 0deg), rgba(126, 34, 206, 0.45), rgba(217, 119, 6, 0.5), rgba(245, 158, 11, 0.6), rgba(126, 34, 206, 0.45));
        animation: rotateShadow 6s linear infinite;
        filter: blur(8px);
        opacity: 0.8;
        transition: filter 0.35s ease, opacity 0.35s ease;
    }

    .brand-logo-container:hover {
        transform: translateY(-4px) scale(1.05);
        border-color: var(--primary-saffron);
    }

        .brand-logo-container:hover::before {
            filter: blur(12px);
            opacity: 1;
        }

@property --shadow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateShadow {
    0% {
        --shadow-angle: 0deg;
    }

    100% {
        --shadow-angle: 360deg;
    }
}

.brand-logo {
    width: 65%;
    height: 65%;
    object-fit: contain;
    clip-path: circle(50% at 50% 50%);
    border-radius: 50%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.35s ease;
}

.brand-logo-container:hover .brand-logo {
    transform: scale(1.08);
}

/* =============================================================
   TITLE STYLING
============================================================= */
.login-title {
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 1.6rem;
    margin-top: 12px;
    margin-bottom: 2px;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, var(--dark-saffron) 0%, var(--primary-saffron) 50%, var(--temple-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(217, 119, 6, 0.15);
}

/* =============================================================
   FORM INPUTS & ICONS
============================================================= */
.input-group-custom {
    position: relative;
    margin-bottom: 0.9rem;
}

    .input-group-custom .input-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-saffron);
        font-size: 19px;
        z-index: 4;
        pointer-events: none;
    }

    .input-group-custom .form-control {
        position: relative;
        z-index: 1;
        text-align: center;
        padding-left: 45px;
        padding-right: 45px;
        height: 46px;
        border-radius: 12px;
        border: 1.5px solid #fdba74;
        background-color: #fff7ed;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        color: #1e293b;
        width: 100%;
    }

        .input-group-custom .form-control::placeholder {
            text-align: center;
            opacity: 0.75;
        }

        .input-group-custom .form-control:focus {
            background-color: #ffffff;
            border-color: var(--primary-saffron);
            box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
            outline: none;
        }

/* PASSWORD VIEW TOGGLE BUTTON */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    line-height: 1;
    pointer-events: auto;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

    .toggle-password:hover {
        color: var(--primary-saffron);
        transform: translateY(-50%) scale(1.1);
    }

/* =============================================================
   CAPTCHA SECTION
============================================================= */
.captcha-wrapper {
    background: #ffffff !important;
    border: none !important;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 0.9rem;
}

.captcha-img-box {
    background-color: #fff7ed;
    border: 1.5px dashed #fdba74;
    border-radius: 12px;
    padding: 6px;
    display: inline-block;
}

#imgCaptcha {
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

#btnRefreshCaptcha {
    transition: transform 0.3s ease, color 0.2s ease;
    background: transparent;
    cursor: pointer;
    border: none;
    outline: none;
}

    #btnRefreshCaptcha:hover {
        transform: rotate(180deg);
        color: var(--primary-saffron) !important;
    }

/* =============================================================
   SUBMIT BUTTON & FOOTER
============================================================= */
.btn-temple-login {
    background: linear-gradient(135deg, var(--primary-saffron) 0%, var(--dark-saffron) 100%);
    border: none;
    color: #ffffff;
    height: 46px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 14px rgba(217, 119, 6, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-temple-login:hover {
        background: linear-gradient(135deg, var(--temple-gold) 0%, var(--primary-saffron) 100%);
        transform: translateY(-2px);
        box-shadow: 0 10px 18px rgba(217, 119, 6, 0.4);
        color: #ffffff;
    }

.footer-link {
    color: var(--dark-saffron);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

    .footer-link:hover {
        color: var(--primary-saffron);
        text-decoration: underline;
    }

/* =============================================================
   TOAST ALERT
============================================================= */
.custom-alert {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
    border: none;
    background-color: #fef2f2;
    color: #991b1b;
    padding: 8px 12px;
    font-size: 0.88rem;
}

/* =============================================================
   MODAL POPUP OVERLAY & DIALOG (Saffron/Temple Theme)
============================================================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 15px;
}

.popup-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    padding: 26px 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(253, 186, 116, 0.4);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.show .popup-card {
    transform: scale(1);
    opacity: 1;
}

.popup-icon-badge {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fee2e2 0%, #ffedd5 100%);
    border: 2px solid rgba(239, 68, 68, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.popup-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.popup-message {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.45;
}

.btn-popup-close {
    background: linear-gradient(135deg, var(--primary-saffron) 0%, var(--dark-saffron) 100%);
    color: #ffffff;
    border: none;
    padding: 10px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
}

    .btn-popup-close:hover {
        background: linear-gradient(135deg, var(--temple-gold) 0%, var(--primary-saffron) 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
        color: #ffffff;
    }
