/* Login Page Styles */

body.login-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.login-header {
    background: #2c3e50;
    color: white;
    padding: 32px;
    font-size: 32px;
    font-weight: 300;
}

.login-body {
    padding: 40px 32px;
}

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

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.form-input::placeholder {
    color: #aaa;
}

.btn-signin {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #4169e1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-signin:hover {
    background: #3557c7;
}

.btn-signin:disabled {
    background: #ccc;
    cursor: not-allowed;
}

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

.totp-container {
    text-align: center;
}

.totp-message {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.totp-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 500;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    color: #666;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.profile-button:hover {
    background: #f5f5f5;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-email {
    font-size: 14px;
    color: #2c3e50;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.profile-menu.show {
    display: block;
}

.profile-menu-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.profile-menu-email {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.profile-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    color: #2c3e50;
}

.profile-menu-item:hover {
    background: #f5f5f5;
}

.profile-menu-item.logout {
    color: #e74c3c;
    border-top: 1px solid #eee;
}

