:root {
    --primary-color: #3498db;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --info-color: #f39c12;
    --dark-grey: #333;
    --light-grey: #f4f4f4;
    --background-color: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light-grey);
    color: var(--dark-grey);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: var(--background-color);
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

h2 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.face-id-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.face-id-btn img {
    width: 80px;
    height: 80px;
    transition: transform 0.2s ease-in-out;
}

.face-id-btn:hover img {
    transform: scale(1.1);
}

.login-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-google { background-color: #DB4437; }
.btn-facebook { background-color: #4267B2; }
.btn-twitter { background-color: #1DA1F2; }
.btn-microsoft { background-color: #2F2F2F; }
.btn-yahoo { background-color: #410093; }
.btn-email { background-color: #7f8c8d; }
.btn-sms { background-color: #27ae60; }

.terms {
    font-size: 0.8rem;
    color: #777;
}

.terms a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Modal Styles */
.modal, .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content, .modal-content-custom {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    width: 90%;
    max-width: 500px;
}

.modal-content-custom {
    max-width: 380px;
}

.modal-content-custom h3 {
    margin-top: 0;
}

.modal-content-custom input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-content-custom button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    margin-top: 10px;
}

.modal-content-custom button.btn-cancel {
    background-color: #bdc3c7;
}

.close-btn {
    margin-top: 1rem;
    background: #ccc;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
}

/* Scan Animation */
.scan-animation {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 1.5rem auto;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

#cameraFeed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
    animation: scan 2s infinite linear;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    h1 {
        font-size: 2rem;
    }
}