/* Lucky Loop — Auth pages (signup/login) */

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0F3D2E;
    color: #14241D;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

/* Ambient floating loop rings in the background */
.auth-bg-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(201, 242, 77, 0.18);
    pointer-events: none;
}

.auth-bg-ring.r1 {
    width: 480px;
    height: 480px;
    top: -180px;
    left: -160px;
    animation: float-spin 40s linear infinite;
}

.auth-bg-ring.r2 {
    width: 360px;
    height: 360px;
    bottom: -140px;
    right: -120px;
    border-color: rgba(212, 130, 58, 0.18);
    animation: float-spin 32s linear infinite reverse;
}

.auth-bg-ring.r3 {
    width: 220px;
    height: 220px;
    top: 60%;
    left: 8%;
    border-color: rgba(159, 184, 168, 0.18);
    animation: float-bob 14s ease-in-out infinite;
}

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

@keyframes float-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-24px); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-bg-ring { animation: none; }
}

/* ---------- Card ---------- */
.auth-card {
    position: relative;
    z-index: 1;
    background: #F7F3E8;
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45);
    animation: card-rise 0.5s ease-out;
}

@keyframes card-rise {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.auth-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.auth-logo-link:hover {
    opacity: 0.8;
}

.auth-logo .clover {
    font-size: 30px;
    display: inline-block;
    animation: clover-sway 3s ease-in-out infinite;
}

@keyframes clover-sway {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg); }
}

.auth-logo .wordmark {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 600;
    color: #0F3D2E;
}

.auth-logo .wordmark span {
    color: #2E7D32;
}

.auth-card h1 {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 600;
    color: #0F3D2E;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.auth-card .auth-sub {
    font-size: 14.5px;
    color: #6E8A7C;
    margin: 0 0 28px;
}

/* ---------- Form ---------- */
.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2E443A;
    margin-bottom: 6px;
    margin-top: 16px;
    letter-spacing: 0.01em;
}

.auth-form label:first-child {
    margin-top: 0;
}

/* Inside two-column rows, all labels align at the top — row handles spacing */
.auth-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
    align-items: start;
}

/* Reset individual label top-margin inside a row — the row handles it */
.auth-row-2 label {
    margin-top: 0;
}

/* ---------- Checkbox ---------- */
.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 500;
    color: #4A5C53;
    cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: #2E7D32;
    cursor: pointer;
}

.auth-checkbox span {
    line-height: 1.4;
}

/* ---------- Submit button ---------- */
.auth-submit {
    width: 100%;
    margin-top: 26px;
    padding: 14px;
    border: none;
    border-radius: 100px;
    background: linear-gradient(135deg, #C9F24D, #9FE066);
    color: #0F3D2E;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 16px -6px rgba(46, 125, 50, 0.5);
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -6px rgba(46, 125, 50, 0.55);
}

.auth-submit:active {
    transform: translateY(0);
}

/* ---------- Footer link ---------- */
.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: #6E8A7C;
}

.auth-footer a {
    color: #2E7D32;
    font-weight: 700;
    text-decoration: none;
}

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

/* ---------- Alerts ---------- */
.auth-card .alert {
    margin-bottom: 18px;
}

.auth-card .alert ul {
    margin: 0;
    padding-left: 18px;
}

/* ---------- Back link ---------- */
.auth-back {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    color: #DDEADD;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
}

.auth-back:hover {
    color: #C9F24D;
}

@media (max-width: 480px) {
    .auth-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .auth-card {
        padding: 32px 24px;
    }
    .auth-back {
        position: static;
        display: inline-block;
        margin-bottom: 16px;
    }
    .auth-body {
        flex-direction: column;
    }
}

.auth-hint {
    font-size: 12.5px;
    color: #6E8A7C;
    margin-top: -8px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #E0DACA;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    font-family: inherit;
    color: #14241D;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}
