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

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f9fafb;
}

.login-container,
.verification-container,
.card-container,
.complete-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.login-container {
    justify-content: space-between;
}

.logo-container {
    margin-bottom: 0.5rem;
    text-align: center;
}

.logo-container img {
    height: 6rem;
    width: auto;
    object-fit: contain;
}

.form-container {
    width: 100%;
    max-width: 25rem;
    margin: auto;
}

.input-field {
    border-bottom: 1px solid #d1d5db;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.input-field input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: #111827;
    outline: none;
}

.input-field input::placeholder {
    color: #9ca3af;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

button {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #ef4444;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #dc2626;
}

.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    border: 2px solid #ef4444;
    color: #ef4444;
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: #fef2f2;
}

.forgot-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

.forgot-link a {
    color: #ef4444;
    text-decoration: none;
}

.forgot-link a:hover {
    text-decoration: underline;
}

.footer-links {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 2rem;
}

.footer-links a {
    color: #ef4444;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.processing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.processing-content {
    text-align: center;
}

.spinner {
    width: 4rem;
    height: 4rem;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #ef4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

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

.processing-text {
    font-size: 1.25rem;
    color: #111827;
    font-weight: 600;
    margin-top: 1rem;
}

.processing-subtext {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.verification-title {
    font-size: 1.75rem;
    color: #111827;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.verification-description {
    font-size: 0.95rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.code-input-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.code-digit {
    width: 3rem;
    height: 3rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #d1d5db;
    border-radius: 0.375rem;
    outline: none;
}

.code-digit:focus {
    border-color: #ef4444;
}

.resend-link {
    text-align: center;
    margin-top: 0.75rem;
}

.resend-link a {
    color: #ef4444;
    text-decoration: none;
    font-size: 0.875rem;
}

.resend-link a:hover {
    text-decoration: underline;
}

.card-form-group {
    margin-bottom: 1rem;
}

.card-form-group label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card-form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    outline: none;
}

.card-form-group input:focus {
    border-color: #ef4444;
}

.complete-checkmark {
    color: #10b981;
    font-weight: 700;
    margin-right: 0.5rem;
}

.complete-item {
    text-align: left;
    margin: 0.75rem 0;
    font-size: 0.95rem;
}

.notice-section {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1.5rem 0;
}

.notice-title {
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.notice-text {
    font-size: 0.875rem;
    color: #78350f;
    line-height: 1.5;
}

.warning-section {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1.5rem 0;
}

.warning-title {
    font-weight: 700;
    color: #7f1d1d;
    margin-bottom: 0.5rem;
}

.warning-text {
    font-size: 0.875rem;
    color: #991b1b;
    line-height: 1.5;
}

.bot-detector {
    display: none;
}
