/* Global styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    margin: 0;
    color: #333;
    padding: 20px; /* For mobile spacing */
}

/* Login container */
.login-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
}

/* Headings & text */
.login-container h2 {
    margin-bottom: 18px;
    color: #212121;
    font-size: 24px;
    font-weight: 600;
}
.login-container h3 {
    margin-top: 15px;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.login-container p {
    color: #555;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Logo */
.logo {
    margin-bottom: 25px;
}
.logo img {
    max-width: 160px;
    height: auto;
}

/* Form layout */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
    font-size: 13px;
}
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box; /* <-- ADDED THIS LINE */
}
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="text"]:focus {
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

/* Buttons */
.main-login-btn,
.secondary-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-sizing: border-box;
    margin-top: 12px;
}
.main-login-btn {
    background-color: #0078d4;
    color: white;
}
.main-login-btn:hover {
    background-color: #005a9e;
    transform: translateY(-1px);
}
.secondary-btn {
    background-color: #6c757d;
    color: white;
}
.secondary-btn:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

/* Separator */
.separator {
    margin: 20px 0;
    display: flex;
    align-items: center;
    color: #888;
    font-size: 12px;
}
.separator::before,
.separator::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: #ddd;
}
.separator span {
    padding: 0 10px;
}

/* Microsoft Login Button Fixes */
.microsoft-login-btn {
    width: 100%;
    padding: 12px;
    background-color: #0078d4;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-sizing: border-box;
}
.microsoft-login-btn:hover {
    background-color: #005a9e;
    transform: translateY(-1px);
}
.microsoft-login-btn:active {
    transform: translateY(0);
}

/* Footer */
.footer-text {
    margin-top: 15px;
    font-size: 11px;
    color: #888;
}
.footer-text a {
    color: #0078d4;
    text-decoration: none;
}
.footer-text a:hover {
    text-decoration: underline;
}

/* Error message */
.error-message {
    background-color: #ffebeb;
    color: #cc0000;
    border: 1px solid #cc0000;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
}

/* Responsive tweaks (optional) */
@media (max-width: 400px) {
    .login-container {
        padding: 20px;
    }
}