/* Authentication Page Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #00baf0 0%, #0558c0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    margin-bottom: 20px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.auth-logo h1 {
    font-size: 32px;
    color: #1a1a2e;
    font-weight: 700;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 10px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab.active {
    background: white;
    color: #00baf0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: #1a1a2e;
    margin-bottom: 8px;
    font-size: 28px;
}

.auth-subtitle {
    color: #666;
    margin-bottom: 24px;
    font-size: 16px;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-social:hover {
    border-color: #00baf0;
    background: #f8f9fa;
}

.btn-google {
    color: #333;
}

.btn-apple {
    color: #000;
}

.social-icon {
    width: 24px;
    height: 24px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #999;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    padding: 0 16px;
}

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

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

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

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

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
}

.toggle-password:hover {
    color: #00baf0;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Password Requirements */
.password-requirements {
    margin-top: 12px;
    font-size: 13px;
}

.requirement {
    color: #999;
    margin: 6px 0;
    padding-left: 24px;
    position: relative;
}

.requirement::before {
    content: '○';
    position: absolute;
    left: 0;
    font-size: 16px;
}

.requirement.met {
    color: #10b981;
}

.requirement.met::before {
    content: '✓';
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
    font-size: 14px;
    color: #666;
}

/* Form Footer */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #00baf0 0%, #0558c0 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 186, 240, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #00baf0;
    border: 2px solid #00baf0;
}

.btn-secondary:hover {
    background: #f0f9ff;
}

/* Links */
.link {
    color: #00baf0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

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

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none !important;
}

/* Magic Link Section */
.magic-link-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.text-center {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

/* Back Button */
.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #00baf0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 8px 0;
}

.back-button:hover {
    opacity: 0.8;
}

.back-button svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.auth-footer {
    text-align: center;
    color: white;
}

.auth-footer p {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

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

/* Pending Email Confirmation State */
.pending-confirmation {
    text-align: center;
    padding: 20px 0;
}

.pending-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.pending-confirmation h3 {
    color: #1a1a2e;
    font-size: 24px;
    margin-bottom: 15px;
}

.pending-confirmation p {
    color: #666;
    margin-bottom: 10px;
}

.pending-email {
    color: #0558c0;
    font-size: 18px;
    margin: 15px 0;
}

.pending-note {
    font-size: 14px;
    color: #888;
    margin-top: 20px;
}

.pending-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pending-actions .btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.pending-actions .btn-secondary:hover {
    background: #e0e0e0;
}

.pending-actions .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pending-actions .btn-link {
    background: none;
    border: none;
    color: #0558c0;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

/* Completing Registration State */
.completing-registration,
.registration-complete,
.registration-error {
    text-align: center;
    padding: 40px 20px;
}

.completing-registration h3,
.registration-complete h3,
.registration-error h3 {
    color: #1a1a2e;
    font-size: 22px;
    margin-bottom: 15px;
}

.completing-registration p,
.registration-complete p,
.registration-error p {
    color: #666;
    margin-bottom: 20px;
}

.success-icon,
.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00baf0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Responsive */
@media (max-width: 600px) {
    .auth-card {
        padding: 30px 24px;
    }

    .auth-logo h1 {
        font-size: 28px;
    }

    .auth-form h2 {
        font-size: 24px;
    }
}

/* Beta Access Styles */
.beta-content {
    text-align: center;
}

.beta-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00baf0 0%, #0558c0 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.beta-content h2 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-weight: 700;
}

.beta-form {
    margin: 30px 0;
}

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

.beta-form label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
    text-align: left;
}

.beta-info {
    margin-top: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border-left: 4px solid #00baf0;
}

.beta-info p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

