/* === Authentication Pages === */

.auth-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2rem;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    font-size: 1.6rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Form fields */
.auth-card label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.35rem;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    margin-bottom: 1rem;
    background: #fafafa;
}

.auth-card input:focus {
    outline: none;
    border-color: #1a1a2e;
    background: #fff;
}

/* Allauth wraps fields in <p> tags sometimes */
.auth-card form p {
    margin-bottom: 0;
}

/* Submit button */
.auth-card button[type="submit"],
.auth-card .btn-auth {
    width: 100%;
    padding: 0.85rem;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.auth-card button[type="submit"]:hover,
.auth-card .btn-auth:hover {
    background: #16213e;
}

/* Error messages */
.auth-card .errorlist {
    list-style: none;
    padding: 0;
    margin: -0.5rem 0 1rem;
}

.auth-card .errorlist li {
    color: #e74c3c;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    background: #fdf0ef;
    border-radius: 6px;
    margin-bottom: 0.25rem;
}

/* Non-field errors (top of form) */
.auth-errors {
    background: #fdf0ef;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.auth-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-errors li {
    color: #e74c3c;
    font-size: 0.9rem;
}

/* Checkbox */
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a1a2e;
    margin: 0;
}

/* Login options row (remember me + forgot password) */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.auth-forgot {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
}

.auth-forgot:hover {
    color: #1a1a2e;
    text-decoration: underline;
}

/* Footer links */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.auth-footer a {
    color: #1a1a2e;
    font-weight: 600;
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 480px) {
    .auth-wrapper {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 3rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
}
