* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: #ECE8D2;
    color: #111;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    -webkit-tap-highlight-color: transparent;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.logo {
    font-size: 36px;
    font-weight: 800;
    color: #ff7a00;
    text-align: center;
    text-decoration: none;
    display: block;
}
.logo:hover { opacity: 0.85; }

/* Fixed top-left back-to-landing link, present on every auth page so a user who
   hits /login or /register from a deep link or from the post-logout redirect
   has a way back to the public landing without retyping the URL. */
.back-home {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top));
    left: 18px;
    color: #5a4a3a;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background 0.2s;
    z-index: 10;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.back-home:hover { background: rgba(255, 255, 255, 0.85); }

.tagline {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    text-align: center;
    margin-bottom: 12px;
}

.input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.input:focus { border-color: #ff7a00; }

.primary-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    background: #ff7a00;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    padding: 14px 22px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255,122,0,0.22);
    transition: transform 0.1s ease;
}
.primary-btn:active { transform: scale(0.98); }
.primary-btn:disabled { opacity: 0.7; cursor: wait; }

.error {
    font-size: 13px;
    color: #d32f2f;
    text-align: center;
    min-height: 18px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 14px;
}
.auth-links a {
    color: #ff7a00;
    text-decoration: none;
    font-weight: 600;
}
.auth-links a:hover { text-decoration: underline; }

.helper {
    font-size: 13px;
    color: #888;
    text-align: center;
    line-height: 1.5;
    margin-top: 8px;
}

.success-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}
.success-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: #111; }
.success-card p { font-size: 14px; color: #555; line-height: 1.6; }
.success-card .email { font-weight: 700; color: #ff7a00; }
.back-link {
    display: inline-block;
    margin-top: 14px;
    color: #ff7a00;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
