/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --border-color: #e5e7eb;
    --text-dark: #111827;
    --text-light: #6b7280;
    --bg-light: #f1f5f9;
    --input-bg: #f9fafb;
    --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

/* ===== GLOBAL ===== */
body, html {
    height: 100%;
    margin: 0;
    font-family: var(--font-family);
    background: var(--bg-light);
    color: var(--text-dark);
}

/* ===== WRAPPER ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== CARD ===== */
.login-card {
    background: #ffffff;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.5s ease;
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== BRAND ===== */
.brand-section {
    text-align: center;
    margin-bottom: 24px;
}

/* ===== BRAND LOGO ===== */
.brand-logo {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%; /* makes it a circle */
    object-fit: cover; /* keeps the image nicely cropped */
    margin: 0 auto 12px;
    overflow: hidden; /* ensures image stays within the circle */
}
.brand-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.brand-subtitle {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== MICROSOFT BUTTON ===== */
.btn-microsoft {
    background-color: #ffffff !important;
    color: #374151 !important;
    border: 1px solid var(--border-color) !important;
    padding: 12px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 20px;
    text-decoration: none !important;
}

.btn-microsoft:hover {
    background-color: #f9fafb !important;
}

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    font-size: 12px;
    color: var(--text-light);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider::before { margin-right: 10px; }
.divider::after { margin-left: 10px; }

/* ===== FORM ===== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #374151;
}

.form-control-custom {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: var(--input-bg);
    color: var(--text-dark);
    font-size: 14px;
    transition: 0.2s;
}

/* Autofill fix */
.form-control-custom:-webkit-autofill {
    -webkit-text-fill-color: var(--text-dark);
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
}

/* Focus */
.form-control-custom:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* ===== LOGIN BUTTON ===== */
.btn-login {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    margin-top: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-login:hover {
    background: var(--primary-hover);
}

/* ===== ERROR MESSAGE ===== */
.error-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    background: #fee2e2;
    border-left: 3px solid #ef4444;
    color: #b91c1c;
    font-size: 12px;
}

/* ===== FOOTER ===== */
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
    color: var(--text-light);
}