@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

:root {
    --primary-color: #8b0000;
    --primary-dark: #650000;
    --accent-color: #f0c85a;
    --text-dark: #451414;
    --muted-text: #6f5252;
    --dashboard-red: #930000;
    --dashboard-bg: #e2e2e2;
    --dashboard-card: #f3f3f3;
    --dashboard-border: #d5d5d5;
}

body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: #170707;
}

.login-page {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.login-layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 3fr 2fr;
    overflow: hidden;
}

.login-visual {
    position: relative;
    overflow: hidden;
    background: url("../static_img/bg_landing_page.jpg") center center / cover no-repeat;
}

.login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 10%, rgba(240, 200, 90, 0.32), transparent 45%),
        linear-gradient(135deg, rgba(45, 0, 0, 0.8), rgba(14, 8, 8, 0.65));
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.32));
}

.visual-content {
    position: absolute;
    left: clamp(20px, 4vw, 64px);
    top: clamp(20px, 4vw, 44px);
    z-index: 1;
    max-width: min(80%, 560px);
    color: #fff;
}

.visual-content .kicker {
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: #f0c85a;
}

.visual-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(30px, 4.1vw, 56px);
    line-height: 1.08;
    margin-bottom: 14px;
    text-wrap: balance;
    font-weight: 700;
}

.visual-content p {
    font-size: clamp(13px, 1.6vw, 18px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--dashboard-bg);
    border-left: 3px solid var(--dashboard-red);
}

.login-container {
    width: min(100%, 560px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 18px;
    padding: 24px 20px 22px;
    background: var(--dashboard-card);
    border: 1px solid var(--dashboard-border);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.header {
    text-align: center;
    margin-bottom: 14px;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logo {
    width: 132px;
    height: 132px;
    margin: 0 auto 12px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: 0;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header h2 {
    font-size: clamp(24px, 2.2vw, 48px);
    font-weight: 700;
    color: #111111;
    margin-bottom: 6px;
    line-height: 1.15;
}

.header .beta {
    font-size: 0.5em;
    font-weight: 500;
    color: #696969;
    vertical-align: baseline;
}

.header p {
    color: #4f4f4f;
    font-weight: 400;
    font-size: clamp(16px, 1.1vw, 30px);
}

.form-group {
    margin-bottom: 0;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    color: #7b8088;
    transform: translateY(-50%);
    pointer-events: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.input-wrapper input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1px solid #bcc3cf;
    border-left: 5px solid var(--dashboard-red);
    border-radius: 7px;
    font-weight: 500;
    color: #2d343b;
    background: #e8edf6;
    font-size: clamp(16px, 1vw, 30px);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-wrapper input::placeholder {
    color: #6b7480;
}

.input-wrapper input:focus {
    outline: none;
    border-color: rgba(147, 0, 0, 0.82);
    border-left-color: var(--dashboard-red);
    background: #f0f3f9;
    box-shadow: 0 0 0 3px rgba(147, 0, 0, 0.14);
}

.alert {
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 9px 10px;
}

.alert-danger {
    color: #7f0000;
    background: rgba(255, 225, 225, 0.88);
    border: 1px solid rgba(155, 0, 0, 0.25);
}

.logout-message {
    border-radius: 9px;
    background: rgba(222, 247, 228, 0.92);
    border: 1px solid rgba(21, 87, 36, 0.2);
    color: #155724;
    padding: 8px 10px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.login-btn {
    width: 100%;
    margin-top: 4px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 12px 14px;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
    background: var(--dashboard-red);
    box-shadow: 0 10px 18px rgba(80, 0, 0, 0.28);
    font-size: clamp(16px, 1.1vw, 32px);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(80, 0, 0, 0.38);
    filter: brightness(1.05);
}

.login-btn:active {
    transform: translateY(0);
}

.sis-tools {
    margin-top: auto;
    padding-top: 14px;
    text-align: center;
    color: #2d2d2d;
    font-size: clamp(12px, 0.8vw, 15px);
    line-height: 1.4;
}

.sis-tools strong {
    color: var(--dashboard-red);
}

.guide-text {
    margin-top: 8px;
    text-align: center;
    color: #111;
    font-size: clamp(13px, 0.9vw, 17px);
    line-height: 1.35;
    font-weight: 600;
}

.guide-links {
    margin-top: 2px;
    text-align: center;
    font-size: clamp(12px, 0.85vw, 16px);
    font-weight: 700;
}

.guide-links a {
    text-decoration: none;
    margin: 0 4px;
}

.youtube-link {
    color: var(--dashboard-red);
}

.facebook-link {
    color: #0a63d8;
}

.guide-links a:hover {
    text-decoration: underline;
}

.login-page > .landing-footer {
    flex: 0 0 auto;
}

@media (max-width: 1280px) {
    .login-layout {
        grid-template-columns: 3fr 2fr;
    }

    .login-container {
        width: min(100%, 500px);
        min-height: 480px;
    }
}

@media (max-width: 1024px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 42vh;
    }

    .login-panel {
        min-height: auto;
        padding: 22px 16px 24px;
        border-left: 0;
        border-top: 1px solid rgba(240, 200, 90, 0.18);
    }

    .login-container {
        width: min(100%, 560px);
        min-height: auto;
    }

}

@media (max-width: 480px) {
    .visual-content h1 {
        font-size: clamp(24px, 8vw, 32px);
    }

    .visual-content p {
        font-size: 13px;
    }

    .login-container {
        border-radius: 14px;
        padding: 16px 12px 14px;
        min-height: auto;
    }

    .guide-text {
        margin-top: 14px;
    }
}
