* {
    box-sizing: border-box;
}

:root {
    --green: #22c55e;
    --green-dark: #15803d;
    --green-soft: #bbf7d0;
    --yellow: #fde047;
    --orange: #fb923c;
    --sky: #38bdf8;
    --cream: #fff7ed;
    --brown: #92400e;
    --text: #214231;
    --muted: #5f7166;
    --white: #ffffff;
    --danger-bg: #fee2e2;
    --danger-border: #fca5a5;
    --danger-text: #991b1b;
    --success-bg: #dcfce7;
    --success-border: #86efac;
    --success-text: #166534;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(253,224,71,0.85), transparent 22%),
        radial-gradient(circle at 85% 12%, rgba(56,189,248,0.55), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(34,197,94,0.45), transparent 36%),
        linear-gradient(180deg, #bdefff 0%, #f3ffd1 48%, #8fdd70 100%);
    overflow-x: hidden;
}

body::before {
    content: "☁️";
    position: fixed;
    top: 32px;
    left: 18px;
    font-size: 42px;
    opacity: 0.55;
    pointer-events: none;
}

body::after {
    content: "☁️";
    position: fixed;
    top: 78px;
    right: 24px;
    font-size: 48px;
    opacity: 0.55;
    pointer-events: none;
}

.auth-page {
    min-height: 100vh;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    width: 100%;
    max-width: 430px;
}

.auth-hero-mobile {
    text-align: center;
    margin-bottom: 14px;
}

.farm-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    border: 2px solid rgba(34,197,94,0.28);
    box-shadow: 0 8px 24px rgba(21,128,61,0.16);
    font-size: 13px;
    font-weight: 950;
    color: var(--green-dark);
}

.game-title {
    margin: 14px 0 6px;
    font-size: 38px;
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -1px;
    color: #14532d;
    text-shadow: 0 3px 0 rgba(255,255,255,0.78);
}

.game-title span {
    color: #f97316;
}

.game-subtitle {
    margin: 0 auto;
    max-width: 335px;
    color: #31523c;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 750;
}

.farm-bottom {
    margin-top: 16px;
    text-align: center;
    font-size: 30px;
    letter-spacing: 8px;
    filter: drop-shadow(0 5px 0 rgba(0,0,0,0.08));
}

.auth-card {
    margin-top: 18px;
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    border: 3px solid rgba(255,255,255,0.95);
    border-radius: 30px;
    padding: 22px;
    box-shadow:
        0 18px 0 rgba(74,124,47,0.18),
        0 28px 55px rgba(44,95,45,0.25);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "🌻";
    position: absolute;
    right: -8px;
    top: -12px;
    font-size: 68px;
    opacity: 0.26;
    transform: rotate(18deg);
}

.auth-card::after {
    content: "🌿";
    position: absolute;
    left: -10px;
    bottom: -14px;
    font-size: 62px;
    opacity: 0.18;
    transform: rotate(-18deg);
}

.auth-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    font-size: 38px;
    background: linear-gradient(135deg, #fef08a, #86efac);
    border: 3px solid #ffffff;
    box-shadow: 0 12px 24px rgba(34,197,94,0.25);
    position: relative;
    z-index: 1;
}

.auth-title {
    margin: 0;
    text-align: center;
    color: #14532d;
    font-size: 27px;
    font-weight: 950;
    position: relative;
    z-index: 1;
}

.auth-subtitle {
    margin: 8px auto 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    max-width: 320px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.alert {
    padding: 13px 14px;
    border-radius: 18px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    position: relative;
    z-index: 1;
}

.alert-error {
    background: var(--danger-bg);
    border: 2px solid var(--danger-border);
    color: var(--danger-text);
}

.alert-success {
    background: var(--success-bg);
    border: 2px solid var(--success-border);
    color: var(--success-text);
}

.social-box {
    display: grid;
    gap: 10px;
    margin: 0 0 15px;
    position: relative;
    z-index: 1;
}

.social-btn,
.social-disabled {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
    transition: 0.18s ease;
}

.social-btn {
    background: #ffffff;
    border: 2px solid #dbeafe;
    color: #1f2937;
    box-shadow: 0 7px 0 #cbd5e1, 0 12px 22px rgba(15,23,42,0.10);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 0 #cbd5e1, 0 18px 26px rgba(15,23,42,0.14);
}

.social-btn:active {
    transform: translateY(4px);
    box-shadow: 0 3px 0 #cbd5e1, 0 8px 14px rgba(15,23,42,0.10);
}

.social-disabled {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}

.social-google::before {
    content: "G";
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #2563eb;
    font-weight: 950;
}

.social-facebook::before {
    content: "f";
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #1877f2;
    color: #ffffff;
    font-size: 20px;
    font-weight: 950;
    font-family: Arial, sans-serif;
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 21px 0 13px;
    color: #7c8b7f;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.divider::before,
.divider::after {
    content: "";
    height: 2px;
    flex: 1;
    border-radius: 99px;
    background: #bbf7d0;
}

.form-group {
    margin-bottom: 13px;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #25543b;
    font-size: 13px;
    font-weight: 950;
}

.form-control {
    width: 100%;
    border: 2px solid #bbf7d0;
    border-radius: 18px;
    padding: 15px 15px;
    background: #ffffff;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    outline: none;
    transition: 0.18s ease;
    box-shadow: inset 0 -3px 0 rgba(34,197,94,0.08);
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus {
    border-color: var(--green);
    box-shadow:
        0 0 0 5px rgba(34,197,94,0.16),
        inset 0 -3px 0 rgba(34,197,94,0.08);
}

.btn {
    width: 100%;
    border: 0;
    border-radius: 20px;
    padding: 16px;
    font-size: 16px;
    font-weight: 950;
    cursor: pointer;
    transition: 0.18s ease;
    position: relative;
    z-index: 1;
}

.btn-primary {
    color: #14532d;
    background: linear-gradient(135deg, #fde047, #86efac 45%, #22c55e);
    box-shadow:
        0 7px 0 #15803d,
        0 14px 24px rgba(34,197,94,0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 9px 0 #15803d,
        0 18px 30px rgba(34,197,94,0.34);
}

.btn-primary:active {
    transform: translateY(5px);
    box-shadow:
        0 2px 0 #15803d,
        0 8px 16px rgba(34,197,94,0.2);
}

.auth-links {
    margin-top: 18px;
    text-align: center;
    color: #31523c;
    font-size: 14px;
    line-height: 1.9;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.auth-links a {
    color: #15803d;
    font-weight: 950;
    text-decoration: none;
}

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

.small-note {
    margin-top: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #fef9c3;
    border: 2px solid #fde68a;
    color: #854d0e;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    font-weight: 850;
    position: relative;
    z-index: 1;
}

@media (min-width: 860px) {
    .auth-page {
        padding: 32px;
    }

    .auth-shell {
        max-width: 980px;
        display: grid;
        grid-template-columns: 1fr 430px;
        gap: 34px;
        align-items: center;
    }

    .auth-hero-mobile {
        text-align: left;
        margin-bottom: 0;
        padding: 20px;
    }

    .game-title {
        font-size: 64px;
    }

    .game-subtitle {
        margin-left: 0;
        max-width: 460px;
        font-size: 17px;
    }

    .farm-bottom {
        text-align: left;
        font-size: 38px;
    }

    .auth-card {
        margin-top: 0;
        padding: 28px;
    }
}

@media (max-width: 380px) {
    .auth-page {
        padding: 12px;
    }

    .auth-card {
        padding: 18px;
        border-radius: 26px;
    }

    .game-title {
        font-size: 32px;
    }

    .farm-bottom {
        font-size: 24px;
        letter-spacing: 5px;
    }
}