/* Authentication & Account Pages Styling */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-text {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4a9b7f 0%, #7ec97e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.tagline {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.auth-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

.form-group input {
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    color: #2d3748;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4a9b7f;
    box-shadow: 0 0 0 3px rgba(74, 155, 127, 0.1);
}

.form-group small {
    font-size: 0.8rem;
    color: #718096;
}

/* Buttons */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #4a9b7f 0%, #7ec97e 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 155, 127, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

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

.btn-danger {
    background: #fc8181;
    color: white;
}

.btn-danger:hover {
    background: #f56565;
}

.btn-block {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.alert-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-info {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #0050b3;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Dividers */
.divider {
    text-align: center;
    margin: 24px 0;
    color: #cbd5e0;
    font-weight: 600;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 46%;
    height: 1px;
    background: #cbd5e0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* OAuth Buttons */
.auth-description {
    text-align: center;
    color: #718096;
    font-size: 0.85rem;
    margin: 16px 0 12px 0;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #2d3748;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 44px;
}

.oauth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e0;
}

.oauth-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Apple logo needs proper aspect ratio (814:1000) */
.oauth-btn.apple .oauth-logo {
    width: 16px;
    height: 20px;
}

.oauth-btn.google:hover {
    border-color: #4285F4;
    background: #f8fbff;
}

.oauth-btn.github:hover {
    border-color: #333;
    background: #f6f6f6;
}

.oauth-btn.apple:hover {
    border-color: #000;
    background: #f9f9f9;
}

/* Links */
.auth-link,
.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #718096;
}

.auth-link a,
.login-link a {
    color: #4a9b7f;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover,
.login-link a:hover {
    text-decoration: underline;
}

/* Landing Page */
.landing-content {
    background: white;
    border-radius: 12px;
    padding: 40px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-section {
    text-align: center;
    margin-bottom: 35px;
}

.hero-section h1 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #718096;
}

.features-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.feature h3 {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 6px;
}

.feature p {
    font-size: 0.85rem;
    color: #718096;
}

.cta-section {
    text-align: center;
}

.cta-section .btn {
    padding: 12px 32px;
    font-size: 1rem;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #a0aec0;
    font-size: 0.85rem;
}

/* Setup Info */
.setup-description {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.5;
}

.setup-info {
    margin-top: 30px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 6px;
    border-left: 4px solid #4a9b7f;
}

.setup-info h4 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.setup-info ul {
    list-style: none;
    font-size: 0.9rem;
    color: #718096;
}

.setup-info li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.setup-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a9b7f;
    font-weight: bold;
}

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

    .auth-card h2 {
        font-size: 1.5rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .features-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .oauth-buttons {
        flex-direction: column;
    }

    .oauth-btn {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}
