/* Auth Pages (Login/Signup) */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
}

.auth-nav {
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid var(--border);
}

.auth-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.auth-card h1 {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.auth-card .auth-sub {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

/* Role tabs */
.role-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.role-tab {
    flex: 1;
    padding: 12px 20px;
    background: white;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text-light);
}

.role-tab:first-child {
    border-right: 2px solid var(--border);
}

.role-tab.active {
    background: var(--primary);
    color: white;
}

.role-tab:hover:not(.active) {
    background: var(--bg-alt);
}

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

.auth-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-form .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 8px;
}

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

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

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

.auth-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: none;
}

.auth-error.visible {
    display: block;
}

/* Skills checkboxes */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.skill-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.skill-check:hover {
    border-color: var(--primary);
    background: #f0f7ff;
}

.skill-check input {
    width: auto;
    margin: 0;
}

.skill-check.checked {
    border-color: var(--primary);
    background: #eff6ff;
}

/* Conditional fields */
.role-fields {
    display: none;
}

.role-fields.active {
    display: block;
}

/* Password strength */
.password-strength {
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    margin-top: 6px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
    width: 0;
}

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

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

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .auth-form input,
    .auth-form select {
        padding: 14px;
        font-size: 16px;
    }
}
