/**
 * 登入頁面樣式
 */

/* 重置和基礎樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 登入容器 */
.login-container {
    width: 100%;
    max-width: 480px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 48px 40px;
    animation: slideUp 0.4s ease-out;
}

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

/* Logo 區域 */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.app-subtitle {
    font-size: 14px;
    color: #718096;
}

/* 登入區域 */
.login-section {
    margin-bottom: 32px;
}

/* Microsoft 登入按鈕 */
.microsoft-login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: #2f2f2f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.microsoft-login-btn:hover {
    background: #1f1f1f;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.microsoft-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.microsoft-login-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

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

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 錯誤訊息 */
.error-message {
    margin-top: 20px;
    padding: 12px 16px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
    font-size: 14px;
    line-height: 1.5;
}

/* 說明文字 */
.info-text {
    margin-top: 24px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 14px;
    color: #4a5568;
}

.info-text p {
    margin-bottom: 8px;
    font-weight: 600;
}

.info-text ul {
    list-style: none;
    padding-left: 0;
}

.info-text li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.info-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

/* 頁尾 */
.footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.footer p {
    font-size: 12px;
    color: #a0aec0;
}

/* 響應式設計 */
@media (max-width: 640px) {
    .login-card {
        padding: 32px 24px;
    }

    .app-title {
        font-size: 20px;
    }

    .logo-icon {
        font-size: 48px;
    }
}




