:root {
    --cie-blue: #0066CC;
    --cie-blue-hover: #0052a3;
    --bg: #F5F7FA;
    --text: #17324D;
    --text-secondary: #5A768A;
    --white: #FFFFFF;
    --error: #D32F2F;
    --success: #2E7D32;
}

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

body {
    font-family: 'Titillium Web', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    position: relative;
}

.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 48px;
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.logo-area {
    margin-bottom: 32px;
}

.title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
}

.description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cie-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--cie-blue);
    color: var(--white);
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 102, 204, 0.2);
}

.cie-button:hover {
    background-color: var(--cie-blue-hover);
    box-shadow: 0 6px 12px rgba(0, 102, 204, 0.3);
}

.cie-button:focus-visible {
    outline: 3px solid var(--text);
    outline-offset: 2px;
}

.cie-button:active {
    transform: translateY(1px);
}

.info-section {
    margin-top: 24px;
}

.info-link {
    font-size: 14px;
    color: var(--cie-blue);
    text-decoration: none;
    font-weight: 600;
}

.info-link:hover {
    text-decoration: underline;
}

.footer {
    margin-top: 48px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.privacy-link {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* Toast Alerts */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert {
    padding: 16px 24px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.alert-error {
    background-color: var(--error);
}

.alert-success {
    background-color: var(--success);
}

/* Dashboard specific styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
    margin: 24px 0;
    background: var(--bg);
    padding: 24px;
    border-radius: 8px;
}

.data-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
}

.data-value {
    font-size: 16px;
    color: var(--text);
    font-weight: 400;
}

.info-box {
    background-color: #E3F2FD;
    border-left: 4px solid var(--cie-blue);
    padding: 16px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 24px;
    text-align: left;
}

.logout-button {
    display: inline-block;
    background-color: var(--error);
    color: var(--white);
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.logout-button:hover {
    background-color: #b71c1c;
}

.auth-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 24px;
}

@media (max-width: 600px) {
    .card {
        padding: 32px 24px;
    }
    
    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
