/* Compact login page styles - fixed width issues */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
}

.login-container {
    background-color: white;
    max-width: 320px;
    width: 100%;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

h2 {
    text-align: center;
    margin-bottom: 6px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.login-container > p {
    text-align: center;
    margin-bottom: 16px;
    color: #666;
    font-size: 13px;
}

/* Azure AD Sign-in Button */
.btn-azure {
    background: #0078d4;
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 16px;
    transition: background-color 0.2s ease;
    font-weight: 500;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-azure:hover {
    background: #106ebe;
    text-decoration: none;
    color: white;
}

.btn-azure:focus {
    outline: 2px solid #005a9e;
    outline-offset: 2px;
}

/* Standard buttons */
.btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-bottom: 6px;
    font-weight: 500;
    box-sizing: border-box;
}

.btn:hover {
    background: #005a85;
    text-decoration: none;
    color: white;
}

.btn-guest {
    background: #6c757d;
    color: white;
    padding: 10px 16px;
    font-size: 13px;
    margin-bottom: 0;
}

.btn-guest:hover {
    background: #545b62;
    color: white;
}

.btn-admin {
    background: #dc3545;
    margin-bottom: 6px;
}

.btn-admin:hover {
    background: #c82333;
}

.btn-cancel {
    background: #6c757d;
    margin-bottom: 0;
}

.btn-cancel:hover {
    background: #5a6268;
}

/* Login options */
.login-options {
    margin: 12px 0;
    text-align: center;
}

.login-options a {
    color: #007cba;
    text-decoration: none;
    margin: 0 6px;
    font-size: 12px;
}

.login-options a:hover {
    text-decoration: underline;
}

/* Admin login form */
.admin-login-form {
    background: #f8f9fa;
    border: 2px solid #dc3545;
    border-radius: 6px;
    padding: 16px;
    margin: 12px 0;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.admin-login-header {
    text-align: center;
    margin-bottom: 14px;
}

.admin-login-header h3 {
    color: #dc3545;
    margin: 0 0 4px 0;
    font-size: 16px;
}

.admin-login-header p {
    color: #6c757d;
    margin: 0;
    font-size: 12px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.form-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Divider */
.divider {
    text-align: center;
    margin: 14px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: white;
    padding: 0 10px;
    color: #666;
    font-size: 12px;
}

/* Message styles */
.message {
    padding: 8px 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 10px;
    line-height: 1.3;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .login-container {
        max-width: 300px;
        padding: 16px;
    }
    
    .admin-login-form {
        padding: 12px;
        margin: 10px 0;
    }
    
    .btn-azure,
    .btn {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .login-options a {
        display: block;
        margin: 8px 0;
    }
}

@media (max-width: 360px) {
    .login-container {
        max-width: 280px;
        padding: 14px;
    }
    
    h2 {
        font-size: 18px;
    }
}