﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    justify-content: center;
    max-width: 450px;
}

.login-page {
    justify-content: center;
    
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.epf-logo {
    background: #f5f7fa;
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    border-radius: 8px;
    padding: 14px 0;
    border: 1px solid #e0e0e0;
}

.subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.passkey-section {
    margin-bottom: 30px;
}

.passkey-btn {
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

    .passkey-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    }

    .passkey-btn:active {
        transform: translateY(0);
    }

.passkey-icon {
    font-size: 1.3em;
}

.passkey-help {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.passkey-section {
    margin-bottom: 30px;
}

.qrcode-btn {
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

    .qrcode-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
    }

    .qrcode-btn:active {
        transform: translateY(0);
    }

.qrcode-icon {
    font-size: 1.3em;
}

.qrcode-help {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}


.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #999;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #ddd;
    }

    .divider span {
        padding: 0 20px;
        font-weight: 500;
    }

.traditional-login {
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        color: #555;
        font-weight: 500;
    }

    .input-group input {
        width: 100%;
        padding: 15px;
        border: 2px solid #e1e8ed;
        border-radius: 8px;
        font-size: 1em;
        transition: border-color 0.3s ease;
    }

        .input-group input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

.password-btn {
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .password-btn:hover {
        background: #5a67d8;
    }

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

    .forgot-password a {
        color: #667eea;
        text-decoration: none;
        font-size: 0.9em;
    }

        .forgot-password a:hover {
            text-decoration: underline;
        }

.setup-passkey {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

    .setup-passkey h3 {
        color: #495057;
        margin-bottom: 10px;
    }

    .setup-passkey p {
        color: #6c757d;
        font-size: 0.9em;
        margin-bottom: 15px;
    }

.setup-btn {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .setup-btn:hover {
        background: #667eea;
        color: white;
    }

.security-note {
    background: #e8f4fd;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9em;
    color: #1565C0;
}

.loading {
    display: none;
    margin-left: 10px;
}

    .loading.show {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid #ffffff40;
        border-top: 2px solid #fff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9em;
    display: none;
}

.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9em;
    display: none;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 10px;
    }

    .epf-logo {
        font-size: 2em;
    }

    .passkey-btn {
        font-size: 1.1em;
        padding: 16px 18px;
    }
}


.agree-btn {
    width: 100%;
    padding: 18px 20px;
    background: green;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.deny-btn {
    width: 100%;
    padding: 18px 20px;
    background: red;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.setting-container {
    background: #fff;
    padding: 40px 32px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.08);
    max-width: 420px;
    margin: 40px auto;
    text-align: center;
}

.setting-title {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 24px;
}

.info-box {
    margin-bottom: 32px;
}

.login-type {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
    font-size: 1.1em;
    transition: background 0.2s;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

    .login-type input[type="radio"] {
        margin-right: 16px;
        accent-color: #4CAF50;
        width: 20px;
        height: 20px;
    }

    .login-type:hover {
        background: #e3f2fd;
    }

.btn-primary {
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    width: 100%;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-primary:hover {
    background: #388e3c;
}

