/* CV Board - Auth Pages Styles */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --input-bg: #f1f5f9;
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    line-height: 1.6;
}

.auth-container {
    display: flex;
    gap: 2rem;
    max-width: 900px;
    width: 100%;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 420px;
}

.auth-card.centered {
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: block;
    margin-bottom: 1.5rem;
}

.auth-card h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--input-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--card-bg);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Slug input */
.slug-input {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--input-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.slug-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--card-bg);
}

.slug-prefix {
    padding: 0.75rem 0.75rem;
    background: var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.slug-input input {
    border: none !important;
    background: transparent !important;
    flex: 1;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
}

.slug-input input:focus {
    outline: none;
    box-shadow: none !important;
}

.slug-status {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.slug-status.available {
    color: var(--success);
}

.slug-status.taken {
    color: var(--error);
}

.slug-status.checking {
    color: var(--text-muted);
}

.slug-status a {
    color: var(--primary);
    cursor: pointer;
}

/* Password strength */
.password-strength {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.password-strength.strong {
    color: var(--success);
}

.password-strength.weak {
    color: var(--warning);
}

/* Checkbox */
.checkbox-group {
    flex-direction: row;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

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

.btn-secondary {
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

/* Form feedback */
.form-error {
    color: var(--error);
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.form-error a {
    color: var(--primary);
    text-decoration: underline;
}

.form-success {
    color: var(--success);
    font-size: 0.875rem;
    min-height: 1.25rem;
}

/* Auth links */
.auth-links {
    margin-top: 1rem;
    text-align: center;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
}

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

/* Auth footer */
.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* Auth info panel */
.auth-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    max-width: 360px;
}

.auth-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.auth-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-info li::before {
    content: "✓";
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.pricing {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    opacity: 0.9;
}

/* Success message */
.success-message {
    text-align: center;
    padding: 1rem 0;
}

.success-message h2 {
    color: var(--success);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.success-message .btn {
    margin-top: 1.5rem;
}

/* Message states */
.message {
    text-align: center;
    padding: 1rem 0;
}

.message h2 {
    margin-bottom: 1rem;
}

.message p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.message.success h2 {
    color: var(--success);
}

.message.error h2 {
    color: var(--error);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-card,
    .auth-info {
        max-width: none;
    }

    .auth-info {
        order: -1;
        padding: 1.5rem;
    }

    .auth-info h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

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