
:root {
    --primary: #1e3a8a;
    --primary-dark: #162c6e;
    --primary-light: #2563eb;
    --blue-light: #dbeafe;
    --blue-surface: #eff6ff;
    --accent-red: #c41c27;
    --red-hover: #a8151f;
    --text-dark: #1e2a4a;
    --text-muted: #64748b;
    --success: #16a34a;
    --danger: #dc2626;
    --border-color: #cbd5e1;
    --border-radius: 12px;
    --box-shadow: 0 20px 60px rgba(30, 58, 138, 0.15);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--text-dark);
    padding: 20px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: white;
    width: 100%;
    max-width: 460px;
    border: none;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 32px 24px 28px;
    text-align: center;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-red);
}

.logo-container {
    margin-bottom: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 110px;
    height: 110px;
    background-color: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    border: 3px solid rgba(255,255,255,0.3);
}

.logo-img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}

.login-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.login-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.card-body {
    padding: 32px 30px 28px;
    background: #ffffff;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 7px;
    font-size: 0.875rem;
}

.form-control {
    border-radius: 8px;
    padding: 11px 15px;
    border: 1.5px solid var(--border-color);
    font-size: 0.95rem;
    transition: all 0.25s ease;
    background-color: #f8faff;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background-color: #ffffff;
    outline: none;
}

.input-icon-container {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 14px;
    color: var(--text-muted);
    font-size: 1rem;
    z-index: 2;
}

.icon-input {
    padding-left: 42px;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-red) 0%, #9b1520 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(196, 28, 39, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--red-hover) 0%, #7a1018 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196, 28, 39, 0.4);
    color: white;
}

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

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.forgot-password:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.create-account {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.create-account:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.alert {
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
}

.alert-danger {
    background-color: #fef2f2;
    border-left: 3px solid var(--danger);
    color: #991b1b;
}

.alert-success {
    background-color: #f0fdf4;
    border-left: 3px solid var(--success);
    color: #166534;
}

.footer-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    color: var(--accent-red);
}

.modal-content {
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border-top-left-radius: calc(var(--border-radius) - 1px);
    border-top-right-radius: calc(var(--border-radius) - 1px);
    border-bottom: none;
    padding: 18px 22px;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 24px;
}

.modal-title {
    font-weight: 600;
    font-size: 1rem;
}
