/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container */
.container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 500px;
    width: 100%;
}

/* Logo */
.logo {
    display: block;
    max-width: 200px;
    margin: 0 auto 20px;
}

/* Typography */
h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
}

.description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

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

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

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

input[type="email"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
    margin-top: 20px;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Info box */
.info {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin-top: 30px;
    border-radius: 4px;
}

.info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.info p:last-child {
    margin-bottom: 0;
}

/* Success/Error icons */
.success-icon,
.error-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.success-icon {
    background: #d4edda;
    color: #28a745;
}

.error-icon {
    background: #f8d7da;
    color: #dc3545;
}

/* Email display */
.email-display {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: #667eea;
    margin: 20px 0;
}

/* Error message */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin: 20px 0;
}

/* Instructions */
.instructions {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.instructions h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.instructions ol {
    margin-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
    color: #555;
}

/* CAPTCHA container */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.captcha-image {
    flex: 1;
    max-width: 200px;
    height: 80px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
}

.btn-refresh {
    width: 40px;
    height: 40px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-refresh:hover {
    background: #667eea;
    color: white;
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 24px;
    }
}
