﻿:root {
    --agri-green: #1f8a57;
    --agri-green-2: #117a4a;
    --agri-dark: #0b3b2a;
    --agri-soft: #eaf7ef;
    --agri-blue: #0d6efd;
    --agri-border: rgba(34,139,87,.18);
    --shadow-lg: 0 24px 70px rgba(0,0,0,.12);
    --shadow-md: 0 12px 28px rgba(0,0,0,.10);
    --radius-xl: 26px;
}

.agri-auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 15% 10%, rgba(31,138,87,.18) 0, rgba(31,138,87,0) 45%), radial-gradient(circle at 90% 25%, rgba(13,110,253,.18) 0, rgba(13,110,253,0) 42%), linear-gradient(180deg, #f7fbf8 0%, #ffffff 65%);
}

.auth-wrap {
    width: 100%;
    max-width: 1100px;
    padding: 1.5rem;
}

.auth-shell {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    border: 1px solid rgba(0,0,0,.04);
}

/* LEFT PANEL */
.auth-story {
    flex: 1 1 52%;
    padding: 2.4rem 2.6rem;
    color: #f2fff7;
    position: relative;
    isolation: isolate;
    background: radial-gradient(circle at top left, rgba(255,255,255,.10), transparent 55%), radial-gradient(circle at bottom right, rgba(13,110,253,.18), transparent 55%), linear-gradient(135deg, #083423 0%, #0f4d2f 35%, #117a4a 100%);
}

    .auth-story::before {
        content: "";
        position: absolute;
        inset: 12% 10%;
        border-radius: 28px;
        border: 1px solid rgba(255,255,255,.18);
        opacity: .45;
    }

.auth-story-inner {
    position: relative;
    z-index: 1;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(6px);
    margin-bottom: 1.2rem;
}

.brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: var(--agri-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 3px rgba(255,255,255,.22);
}

.brand-text {
    font-size: .86rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    opacity: .85;
    font-weight: 600;
}

.story-title {
    font-size: 2.05rem;
    line-height: 1.15;
    font-weight: 800;
    margin: .35rem 0 .75rem;
}

.story-subtitle {
    font-size: .98rem;
    opacity: .88;
    max-width: 420px;
    margin-bottom: 1.35rem;
}

.story-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 1.35rem;
}

.story-badge {
    font-size: .78rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

    .story-badge i {
        font-size: .8rem;
        opacity: .95;
    }

.story-list-title {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    opacity: .72;
    margin-bottom: .5rem;
}

.story-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .92rem;
}

    .story-list li {
        display: flex;
        align-items: center;
        gap: .55rem;
        margin-bottom: .45rem;
    }

        .story-list li i {
            color: #9bf6c1;
            font-size: .78rem;
        }

.story-foot {
    margin-top: 1.2rem;
    font-size: .82rem;
    opacity: .70;
}

/* RIGHT PANEL */
.auth-form-panel {
    flex: 1 1 48%;
    padding: 2.4rem 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    animation: authFade .45s ease-out;
}

@keyframes authFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .80rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: var(--agri-soft);
    color: var(--agri-dark);
    border: 1px solid rgba(31,138,87,.18);
    margin-bottom: 1rem;
}

.auth-h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 .35rem;
    color: var(--agri-dark);
}

.auth-sub {
    color: #6c757d;
    margin-bottom: 1.25rem;
    font-size: .92rem;
}

/* Inputs */
.agri-field {
    position: relative;
}

    .agri-field .form-control {
        height: 48px;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,.14);
        padding-left: 44px;
        font-size: .92rem;
    }

        .agri-field .form-control:focus {
            border-color: rgba(31,138,87,.45);
            box-shadow: 0 0 0 .22rem rgba(31,138,87,.14);
        }

.field-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: .95rem;
}

.pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #6c757d;
}

    .pwd-toggle:hover {
        background: rgba(31,138,87,.08);
        color: var(--agri-dark);
    }

/* PRIMARY BUTTON: ensure correct contrast */
.auth-primary {
    color: #ffffff !important; /* FIX: text was dark/black */
    background: linear-gradient(180deg, var(--agri-green) 0%, var(--agri-green-2) 100%);
    border: 1px solid rgba(0,0,0,.05);
    height: 48px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: .01em;
}

    .auth-primary:hover {
        color: #ffffff !important;
        filter: brightness(.96);
    }

    .auth-primary:focus {
        box-shadow: 0 0 0 .22rem rgba(31,138,87,.20) !important;
    }


.auth-links a {
    color: var(--agri-blue);
    text-decoration: none;
    font-size: .88rem;
}

    .auth-links a:hover {
        text-decoration: underline;
    }

/* Responsive: LOGIN/FORM first on mobile */
@media (max-width: 992px) {
    .auth-shell {
        border-radius: 18px;
    }

    .auth-story, .auth-form-panel {
        flex: 1 1 100%;
        padding: 1.85rem 1.55rem;
    }

    .auth-form-panel {
        order: 1;
    }

    .auth-story {
        order: 2;
        text-align: center;
    }

        .auth-story::before {
            inset: 9% 8%;
        }

    .story-subtitle, .story-list, .story-foot {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .auth-wrap {
        padding: 1rem;
    }

    .story-title {
        font-size: 1.55rem;
    }
}
.btn-outline-agri {
    border: 1px solid rgba(31,138,87,.35);
    color: #117a4a;
    font-weight: 800;
    border-radius: 12px;
    padding: .55rem .95rem;
    background: transparent;
}

    .btn-outline-agri:hover {
        background: rgba(31,138,87,.08);
        border-color: rgba(31,138,87,.55);
        color: #0b3b2a;
    }
