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

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

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #63CDB0 0%, #4EB89A 100%);
    color: #111827;
    padding: 40px 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
}

.login-content {
    padding: 40px 30px;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.hidden {
    display: none;
}

.sign-in-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #374151;
    border: 2px solid #4b5563;
    color: #e5e7eb;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sign-in-button:hover {
    background: #4b5563;
    border-color: #63CDB0;
    color: white;
}

.sign-in-button:active {
    transform: scale(0.98);
}

.microsoft-icon {
    width: 23px;
    height: 23px;
}

.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid #374151;
    border-top: 4px solid #63CDB0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #9ca3af;
    font-size: 14px;
}

.account-info {
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #63CDB0 0%, #4EB89A 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar span {
    color: #111827;
    font-size: 32px;
    font-weight: 600;
}

.user-details {
    margin-bottom: 24px;
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 4px;
}

.user-email {
    font-size: 14px;
    color: #9ca3af;
}

.sign-out-button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sign-out-button:hover {
    background: #c0392b;
}

.login-footer {
    background: #111827;
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #374151;
}

.login-footer p {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.copyright {
    font-weight: 600;
    color: #d1d5db;
}

@media (max-width: 480px) {
    .login-card {
        border-radius: 8px;
    }

    .login-header {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-content {
        padding: 30px 20px;
    }
}
