﻿/* Login.razor.css and Register.razor.css shared styles */

.db-auth-page {
    background-color: var(--db-navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.db-auth__content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 100px 24px 48px;
}

.db-auth-page .db-footer {
    position: relative;
    z-index: 1;
}

/* Background decorations mirroring Home.razor */
.db-auth__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.db-auth__grid {
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(184,150,12,0.06) 1px, transparent 1px),
            linear-gradient(90deg, rgba(184,150,12,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
}

.db-auth__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.db-auth__orb--1 {
    width: 500px;
    height: 500px;
    background: var(--db-gold);
    top: -200px;
    right: -100px;
}

.db-auth__orb--2 {
    width: 400px;
    height: 400px;
    background: #1a3a6e;
    bottom: -100px;
    left: -80px;
}

.db-auth__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.db-auth__container--wide {
    max-width: 500px;
}

.db-auth__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.db-auth__logo {
    height: 80px;
    width: auto;
}

.db-auth__name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--db-white);
    letter-spacing: -0.01em;
}

.db-auth__card {
    background: var(--db-white);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    padding: 40px;
    border: 1px solid rgba(184, 150, 12, 0.1);
}

.db-auth__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--db-navy);
    margin: 0 0 8px;
    text-align: center;
}

.db-auth__subtitle {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 32px;
}

/* Form Styles */
.db-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.db-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.db-form-group--last {
    margin-bottom: 0;
}

.db-form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--db-navy);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.db-form-input {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--db-navy);
    font-family: inherit;
    transition: all 150ms;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.db-form-input:focus {
    border-color: var(--db-gold);
    background: var(--db-white);
    box-shadow: 0 0 0 4px rgba(184, 150, 12, 0.15);
}

.db-form-help {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.db-auth__footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.db-auth__footer a {
    color: var(--db-gold);
    font-weight: 600;
    text-decoration: none;
}

.db-auth__footer a:hover {
    text-decoration: underline;
}

/* Buttons */
.db-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 150ms;
    width: 100%;
}

.db-btn--primary {
    background-color: var(--db-gold);
    color: var(--db-navy);
}

.db-btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 150, 12, 0.25);
}

.db-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.db-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(12, 26, 53, 0.2);
    border-top-color: var(--db-navy);
    border-radius: 50%;
    animation: db-spin 0.6s linear infinite;
}

@keyframes db-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
    .db-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
