* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    background: linear-gradient(135deg, #1b5e20 0%, #4caf50 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1b5e20;
    font-size: 32px;
    margin: 0 auto 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.login-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    opacity: 0.9;
    font-size: 16px;
}

.login-body {
    padding: 40px 30px;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #f5c6cb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
}

.sso-button {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 3px 15px rgba(0, 120, 212, 0.3);
    width: 100%;
    justify-content: center;
}

.sso-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 120, 212, 0.4);
    color: white;
    text-decoration: none;
}

.microsoft-icon {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23"><path fill="%23f25022" d="M1 1h10v10H1z"/><path fill="%23075694" d="M12 1h10v10H12z"/><path fill="%237fba00" d="M1 12h10v10H1z"/><path fill="%23ffb900" d="M12 12h10v10H12z"/></svg>') no-repeat center;
    background-size: contain;
}

.security-info {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    font-size: 13px;
    line-height: 1.4;
}

.security-info h4 {
    margin-bottom: 8px;
    font-size: 14px;
}

.features {
    margin-top: 30px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #e0e0e0;
}

/* Local Login Form Styles */
.local-login-form {
    margin-bottom: 25px;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.local-login-button {
    width: 100%;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 15px rgba(76, 175, 80, 0.3);
}

.local-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(76, 175, 80, 0.4);
}

.login-divider {
    position: relative;
    margin: 25px 0;
    text-align: center;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.login-divider span {
    background: white;
    color: #666;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

@media (max-width: 480px) {
    .login-container { margin: 10px; border-radius: 10px; }
    .login-header { padding: 30px 20px; }
    .login-body { padding: 30px 20px; }
    .logo { width: 60px; height: 60px; font-size: 24px; }
    .login-header h1 { font-size: 24px; }
}
