/* Import a modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
    --primary-bg: #eef4ff;
    --primary-color: #2563eb;
    --primary-color-dark: #174ea6;
    --primary-text: #172033;
    --muted-text: #475569;
    --border-radius: 10px;
    --box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    --font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.main-content:has(.login-outer) {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-outer {
    min-height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.login-container {
    background: #ffffff;
    border: 1px solid #cbd8eb;
    border-radius: 14px;
    box-shadow: var(--box-shadow);
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    overflow: hidden;
}

.login-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 430px;
    padding: 3rem;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(13, 42, 92, 0.96), rgba(23, 78, 166, 0.94)),
        linear-gradient(180deg, #0d2a5c, #174ea6);
}

.login-brand-mark {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.3rem;
    padding: 0.42rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #eff6ff;
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0;
}

.login-brand-icon {
    color: #ffffff;
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.18));
}

.login-intro h1 {
    margin: 0 0 0.9rem;
    font-family: var(--font-family);
    font-size: 2.55rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0;
    color: #ffffff !important;
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #ffffff !important;
    filter: none !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.login-intro p {
    max-width: 420px;
    margin: 0;
    color: #ffffff !important;
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}

.login-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0;
    color: var(--primary-text);
    font-family: var(--font-family);
}

form {
    width: 100%;
}

.mb-3 {
    margin-bottom: 1.2rem;
    width: 100%;
}

label {
    font-weight: 700;
    margin-bottom: 0.3rem;
    display: block;
    font-size: 0.92rem;
    color: var(--muted-text);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.68rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #b9c6da;
    margin-top: 0.2rem;
    font-size: 1rem;
    font-family: var(--font-family);
    color: var(--primary-text);
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 0.7rem;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.login-btn:hover {
    background: linear-gradient(90deg, #174ea6 0%, #1d4ed8 100%);
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.26);
    transform: translateY(-1px);
}

.errorlist {
    color: #d32f2f;
    font-size: 0.97em;
    margin-top: 0.2rem;
}

.login-links {
    margin-top: 1.5em;
    text-align: center;
    width: 100%;
}

.login-links a {
    color: var(--primary-color-dark);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.login-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.login-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.login-logo {
    max-width: 48px;
    height: auto;
}

@media (max-width: 820px) {
    .login-outer {
        padding: 1.25rem;
    }

    .login-container {
        max-width: 460px;
        grid-template-columns: 1fr;
    }

    .login-intro {
        min-height: auto;
        padding: 2rem;
    }

    .login-intro h1 {
        font-size: 2rem;
    }

    .login-panel {
        padding: 2rem;
    }
}
