*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

.login-page {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    min-height: 100vh;
    width: 100%;
}

.login-hero {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 48px 40px 56px;
    background-color: #0e2a64;
    background-image: url('../images/login-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.login-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 30, 70, 0.4) 0%,
        rgba(10, 30, 70, 0.1) 35%,
        rgba(10, 30, 70, 0.1) 60%,
        rgba(10, 30, 70, 0.8) 100%
    );
}

.login-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 780px;
    text-align: center;
    color: #ffffff;
}

.login-hero-logo {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    padding: 6px;
    background: #ffffff;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.login-hero-title {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.login-hero-subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    text-wrap: balance;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.login-hero-subtitle strong {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.login-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background-color: #f1f6fc;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.08) 0 40px, transparent 41px),
        radial-gradient(circle at 88% 82%, rgba(59, 130, 246, 0.08) 0 56px, transparent 57px),
        radial-gradient(circle at 85% 12%, rgba(59, 130, 246, 0.06) 0 28px, transparent 29px),
        radial-gradient(circle at 10% 88%, rgba(59, 130, 246, 0.06) 0 34px, transparent 35px);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 32px 32px 28px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow:
        0 20px 50px rgba(15, 40, 90, 0.12),
        0 4px 14px rgba(15, 40, 90, 0.08);
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.login-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.login-brand-text {
    line-height: 1.1;
    text-align: left;
}

.login-brand-name {
    display: block;
    color: #1d3f8f;
    font-size: 22px;
    font-weight: 800;
}

.login-brand-school {
    display: block;
    margin-top: 2px;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.login-title {
    margin: 0 0 22px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.login-alert {
    margin-bottom: 16px;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
}

.login-label {
    display: block;
    margin-bottom: 6px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
}

.login-group {
    display: flex;
    align-items: stretch;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #d5dde9;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.login-group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    flex-shrink: 0;
    color: #64748b;
    background: #f8fafc;
    border-right: 1px solid #d5dde9;
    border-radius: 8px 0 0 8px;
}

.login-group-icon svg {
    width: 16px;
    height: 16px;
}

.login-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    color: #1e293b;
    background: transparent;
    border: 0;
    font-size: 14px;
    outline: 0;
    box-shadow: none;
}

.login-input::placeholder {
    color: #94a3b8;
}

.login-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    color: #64748b;
    background: transparent;
    border: 0;
    font-size: 12px;
    cursor: pointer;
}

.login-toggle svg {
    width: 15px;
    height: 15px;
}

.login-toggle:hover {
    color: #1d3f8f;
}

.login-error {
    display: block;
    margin: -10px 0 12px;
    color: #c0443f;
    font-size: 12px;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #334155;
    cursor: pointer;
}

.login-remember input {
    width: 15px;
    height: 15px;
    margin: 0;
    cursor: pointer;
}

.login-forgot {
    color: #1d4fa8;
    text-decoration: none;
}

.login-forgot:hover {
    text-decoration: underline;
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    color: #ffffff;
    background: #1558c0;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(21, 88, 192, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}

.login-button:hover {
    color: #ffffff;
    background: #104aa5;
    transform: translateY(-1px);
}

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

@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .login-hero {
        min-height: 220px;
        padding: 28px 20px;
    }

    .login-hero-logo {
        width: 72px;
        height: 72px;
        margin-bottom: 12px;
    }

    .login-hero-title {
        margin-bottom: 0;
        font-size: 20px;
    }

    .login-hero-subtitle {
        display: none;
    }

    .login-panel {
        align-items: flex-start;
        padding: 28px 16px 40px;
    }

    .login-card {
        padding: 28px 22px 24px;
    }
}
