/* ===== Login Page ===== */
html, body.login-body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.login-body {
    background: linear-gradient(135deg, #1a1f36 0%, #2d3561 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 36px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-logo {
    text-align: center;
    margin-bottom: 12px;
}

.login-logo img {
    max-height: 70px;
    width: auto;
}

.login-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3561;
    margin-bottom: 24px;
}

.login-alert {
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.form-label {
    font-weight: 500;
    color: #444;
    font-size: 0.9rem;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #d0d5dd;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: #2d3561;
    box-shadow: 0 0 0 3px rgba(45, 53, 97, 0.15);
}

.login-btn-local {
    background-color: #2d3561;
    border: none;
    border-radius: 8px;
    padding: 11px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background-color 0.2s;
    margin-top: 6px;
}

.login-btn-local:hover {
    background-color: #1a1f3e;
}

/* ---- Divider ---- */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #aaa;
    font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.login-divider span {
    padding: 0 12px;
}

/* ---- Microsoft button ---- */
.login-btn-microsoft {
    background-color: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 11px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.login-btn-microsoft:hover {
    background-color: #f3f4f8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #333;
    text-decoration: none;
}

.ms-logo {
    height: 20px;
    width: 20px;
}

/* ---- Footer ---- */
.login-footer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 24px;
    text-align: center;
}
