/* =============================================
   LATTIA AUTH — DOT GRID + SHIMMER
   public/css/auth.css
   ============================================= */

.lattia-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 1rem;
    position: relative;
    overflow: hidden;
    background-color: #fafbfc;
    background-image: radial-gradient(circle, #d1d5db 0.8px, transparent 0.8px);
    background-size: 24px 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Shimmer sweep */
.lattia-auth-page::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 35%,
        rgba(0, 166, 62, 0.03) 42%,
        rgba(0, 166, 62, 0.06) 48%,
        rgba(0, 166, 62, 0.08) 50%,
        rgba(0, 166, 62, 0.06) 52%,
        rgba(0, 166, 62, 0.03) 58%,
        transparent 65%,
        transparent 100%
    );
    animation: lattiaShimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes lattiaShimmer {
    0% { transform: translateX(-30%) translateY(-10%); }
    100% { transform: translateX(30%) translateY(10%); }
}

/* ---- Container ---- */
.lattia-auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ---- Logo ---- */
.lattia-auth-logo {
    margin-bottom: 28px;
    text-align: center;
}

/* ---- Heading ---- */
.lattia-auth-heading {
    text-align: center;
    margin-bottom: 24px;
}

.lattia-auth-heading h1 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.lattia-auth-heading p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

/* ---- Card ---- */
.lattia-auth-card {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ---- Alerts ---- */
.lattia-auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.lattia-auth-alert-danger {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.lattia-auth-alert-success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

/* ---- Google Button ---- */
.lattia-auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.lattia-auth-google-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ---- Divider ---- */
.lattia-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
}

.lattia-auth-divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 0;
}

.lattia-auth-divider span {
    font-size: 12px;
    color: #9CA3AF;
    white-space: nowrap;
}

/* ---- Form Fields ---- */
.lattia-auth-field {
    margin-bottom: 16px;
}

.lattia-auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.lattia-auth-field input[type="email"],
.lattia-auth-field input[type="password"],
.lattia-auth-field input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #111827;
    background: #fff;
    font-family: inherit;
}

.lattia-auth-field input:focus {
    border-color: var(--green-primary, #00A63E);
    box-shadow: 0 0 0 3px rgba(0, 166, 62, 0.1);
}

.lattia-auth-field input::placeholder {
    color: #C0C5CC;
}

.lattia-auth-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.lattia-auth-field-header label {
    margin-bottom: 0;
}

/* ---- Forgot Link ---- */
.lattia-auth-forgot {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--green-primary, #00A63E);
    text-decoration: none;
    transition: color 0.2s;
}

.lattia-auth-forgot:hover {
    color: var(--green-primary-light, #00BC7D);
}

/* ---- Submit Button ---- */
.lattia-auth-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--green-primary, #00A63E);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    font-family: inherit;
}

.lattia-auth-submit:hover {
    background: var(--green-primary-dark, #008F35);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 166, 62, 0.25);
}

.lattia-auth-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ---- Alt Link ---- */
.lattia-auth-alt-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13.5px;
    color: #6B7280;
}

.lattia-auth-alt-link a {
    color: var(--green-primary, #00A63E);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.lattia-auth-alt-link a:hover {
    color: var(--green-primary-light, #00BC7D);
}

/* ---- Checkbox ---- */
.lattia-auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.lattia-auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--green-primary, #00A63E);
    flex-shrink: 0;
    cursor: pointer;
}

.lattia-auth-checkbox label {
    font-size: 13.5px;
    color: #374151;
    cursor: pointer;
    line-height: 1.4;
}

/* ---- Inline Action Link ---- */
.lattia-auth-inline-link {
    font-size: 13.5px;
    color: #6B7280;
    text-align: center;
}

.lattia-auth-inline-link button {
    background: none;
    border: none;
    padding: 0;
    color: var(--green-primary, #00A63E);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
}

.lattia-auth-inline-link button:hover {
    color: var(--green-primary-light, #00BC7D);
}

/* ---- Footer ---- */
.lattia-auth-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 0.5rem;
}

.lattia-auth-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.lattia-auth-footer-links a {
    font-size: 12.5px;
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s;
}

.lattia-auth-footer-links a:hover {
    color: #6B7280;
}

.lattia-auth-footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #D1D5DB;
    display: inline-block;
}

.lattia-auth-footer-copy {
    font-size: 12px;
    color: #C0C5CC;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .lattia-auth-page {
        padding: 1.5rem 1rem 1rem;
    }

    .lattia-auth-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .lattia-auth-heading h1 {
        font-size: 20px;
    }
}
