/* ==========================================================================
   CSS AUTHENTICATION & LOGIN - YAYASAN ROUDLOTUL QUR'AN AZ ZUHRI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #157A42;
    --primary-dark: #0C4325;
    --accent-gold: #D99B26;
    --bg-body: #EDF7F0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top, #1E8E4F 0%, #0C4325 100%);
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.28);
    overflow: hidden;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    background: linear-gradient(135deg, #157A42 0%, #0C4325 100%);
    color: white;
    padding: 32px 25px 26px;
    text-align: center;
    border-bottom: 3px solid var(--accent-gold);
}

.login-header h1 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
}

.login-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: left;
}

.login-title img {
    display: block;
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
    object-fit: contain;
    opacity: 0.9;
    flex: 0 0 auto;
}

.login-heading-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-heading-name,
.login-heading-subtitle {
    display: block;
}

.login-heading-name {
    font-size: 19px;
    font-weight: 800;
}

.login-heading-subtitle {
    font-size: 12.5px;
    color: #D1FAE5;
    font-weight: 500;
}

@media (max-width: 430px) {
    .login-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .login-title {
        gap: 9px;
    }

    .login-title img {
        width: 78px !important;
        height: 78px !important;
        max-width: 78px !important;
        max-height: 78px !important;
    }

    .login-heading-name {
        font-size: 17px;
    }

    .login-heading-subtitle {
        font-size: 11px;
    }
}

.login-body {
    padding: 30px 25px;
}

.login-group {
    margin-bottom: 20px;
}

.login-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0C4325;
    margin-bottom: 8px;
}

.login-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #D0E7D7;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}

.login-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 122, 66, 0.15);
}

.btn-login {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(21, 122, 66, 0.25);
}

.btn-login:hover {
    background-color: var(--primary-dark);
}

.btn-login:active {
    transform: scale(0.99);
}

.login-footer {
    text-align: center;
    padding: 16px 25px 26px;
    font-size: 13px;
    line-height: 1.25;
    color: #456251;
    border-top: 1px solid #E2F2E7;
}

.login-footer p {
    margin: 4px 0;
}

.login-footer .developer-credit {
    margin-top: 8px;
    font-size: 11px;
    white-space: nowrap;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-alert {
    padding: 12px 15px;
    background: #FEE2E2;
    color: #DC2626;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 4px solid #DC2626;
}

@media (max-width: 430px) {
    .login-footer .developer-credit {
        white-space: normal;
        font-size: 10.5px;
    }
}
