/**
 * CEPR — Authentication pages (login, register, password reset)
 */

.cepr-auth-brand-bg {
    background: linear-gradient(145deg, var(--cepr-blue-darker) 0%, var(--cepr-blue-dark) 40%, var(--cepr-blue) 100%);
}

.cepr-auth-brand__logo-wrap {
    display: flex;
    align-items: flex-start;
}

.cepr-auth-brand__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cepr-auth-brand__logo-link:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.cepr-auth-brand__logo {
    display: block;
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .cepr-auth-brand__logo {
        width: 5.25rem;
        height: 5.25rem;
    }
}

.cepr-auth-brand__logo-fallback {
    display: inline-block;
    max-width: 12rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

/* Primary action — full-width submit buttons */
.cepr-auth .cepr-btn-primary,
.cepr-auth .cepr-auth-submit,
.cepr-auth button[type="submit"]:not(.cepr-auth-btn-ghost) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--cepr-project-gold);
    background: linear-gradient(180deg, var(--cepr-blue-dark) 0%, var(--cepr-blue-darker) 100%);
    border: 2px solid var(--cepr-project-gold);
    border-radius: 0.625rem;
    box-shadow: 0 4px 14px rgba(0, 102, 153, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cepr-auth .cepr-btn-primary:hover,
.cepr-auth .cepr-auth-submit:hover,
.cepr-auth button[type="submit"]:not(.cepr-auth-btn-ghost):hover {
    background: var(--cepr-blue);
    color: var(--cepr-black);
    border-color: var(--cepr-yellow);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4);
    transform: translateY(-1px);
}

.cepr-auth .cepr-btn-primary:focus,
.cepr-auth .cepr-auth-submit:focus,
.cepr-auth button[type="submit"]:not(.cepr-auth-btn-ghost):focus {
    outline: 3px solid var(--cepr-yellow);
    outline-offset: 2px;
}

.cepr-auth .cepr-btn-primary:active,
.cepr-auth .cepr-auth-submit:active {
    transform: translateY(0);
}

/* Secondary / outline button on auth */
.cepr-auth .cepr-auth-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.65rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cepr-blue-dark);
    background: #fff;
    border: 2px solid var(--cepr-blue-mid);
    border-radius: 0.625rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.cepr-auth .cepr-auth-btn-secondary:hover {
    background: var(--cepr-blue-light);
    border-color: var(--cepr-blue);
}

/* Links */
.cepr-auth .cepr-link,
.cepr-auth a.cepr-link {
    color: var(--cepr-blue-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cepr-auth .cepr-link:hover,
.cepr-auth a.cepr-link:hover {
    color: var(--cepr-blue);
}

/* Form fields */
.cepr-auth input[type="email"],
.cepr-auth input[type="password"],
.cepr-auth input[type="text"],
.cepr-auth input:not([type="checkbox"]):not([type="radio"]) {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: var(--cepr-gray-900);
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cepr-auth input:focus {
    border-color: var(--cepr-blue);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2);
    outline: none;
}

.cepr-auth input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #9ca3af;
    border-radius: 0.25rem;
    accent-color: var(--cepr-blue);
    cursor: pointer;
}

.cepr-auth label {
    font-weight: 500;
}

/* Legacy aliases */
.cepr-auth-page {
    background: #f9fafb;
    min-height: 100vh;
}

.cepr-auth-btn {
    background: var(--cepr-blue-dark);
    color: var(--cepr-project-gold);
    font-weight: 700;
}

.cepr-auth-btn:hover {
    background: var(--cepr-blue);
}

.cepr-auth-link {
    color: var(--cepr-blue-dark);
    font-weight: 600;
}

.cepr-auth-brand-accent {
    color: var(--cepr-yellow);
}
