/* BricksNexus – Login & Sign up */

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

body.auth-page {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0f0f12 0%, #1a1a24 50%, #0f0f12 100%);
    color: #e8e8e8;
}

.auth-top-bar {
    height: 56px;
    background: #0f172a;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.auth-top-bar a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-top-bar img {
    height: 28px;
    width: auto;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #fff;
}

.auth-card .subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 0.35rem;
}

.auth-form input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    font-size: 0.9375rem;
    font-family: inherit;
    margin-bottom: 1rem;
}

.auth-form input::placeholder {
    color: #64748b;
}

.auth-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.auth-form .field {
    margin-bottom: 1rem;
}

.role-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.role-option {
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.45);
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.role-option:hover {
    border-color: rgba(125, 211, 252, 0.45);
}

.role-option.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.18);
    color: #eff6ff;
}

.role-option strong {
    display: block;
    font-size: 0.95rem;
}

.role-option span {
    display: block;
    margin-top: 0.25rem;
    color: inherit;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
}

.role-toggle-stacked {
    grid-template-columns: 1fr;
}

.auth-card-wide {
    max-width: 520px;
}

.auth-summary {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.auth-summary strong,
.auth-summary span {
    display: block;
}

.auth-summary strong {
    color: #f8fafc;
    font-size: 0.95rem;
}

.auth-summary span {
    margin-top: 0.2rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.auth-actions {
    margin-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.auth-secondary-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.auth-form .forgot {
    display: block;
    font-size: 0.8125rem;
    color: #7dd3fc;
    text-decoration: none;
    margin-top: -0.5rem;
    margin-bottom: 1.25rem;
}

.auth-form .forgot:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: #3b82f6;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-btn:hover {
    background: #2563eb;
}

.auth-switch {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

.auth-switch a {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 500;
}

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

.auth-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 1.25rem 0;
}
