:root {
    --ag-yellow: #ffc233;
    --ag-yellow2: #ffe380;
    --ag-brown: #3a230d;
    --ag-text-cards: #3a230d;
    --ag-white: #ffffff;
    --ag-bg: var(--ag-white);
    --ag-text: var(--ag-brown)
}

.dark {
    --ag-bg: #14181B;
    --ag-text: var(--ag-white);
    --ag-cards: #22262A;
    --ag-hover: #0000005b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--ag-brown);
    /* 
    animation: backgroundZoom 20s ease-in-out infinite alternate; */
}

@keyframes backgroundZoom {
    from {
        background-size: 100%;
    }

    to {
        background-size: 110%;
    }
}


.main {
    display: grid;
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.overlay {
    inset: 0;
    backdrop-filter: blur(5px) brightness(0.5);
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
    min-height: 100dvh;
}

section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1;
}

.left-section {
    position: relative;
    color: var(--ag-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 20px;
    z-index: 2;
}

.register-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--ag-white);
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--ag-white);
    padding: 8px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    position: relative;
}


.logo-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--ag-white);
}

.tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.description {
    font-size: 24px;
    line-height: 1.4;
    max-width: 600px;
    font-weight: 300;
}

footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    padding: 20px;
    text-align: center;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.right-section {
    width: 400px;
    background: var(--ag-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    margin: 40px;
    border-radius: 30px;
    height: -webkit-fill-available;
    min-height: 700PX;
    max-height: 800PX;
}

.login-container {
    width: 100%;
    max-width: 350px;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.agritech-section {
    text-align: center;
}

.agritech-question {
    font-size: 16px;
    color: var(--ag-brown);
    margin-bottom: 15px;
}

.agritech-btn {
    background: linear-gradient(55deg, #75BB21, #015b86);
    color: var(--ag-white);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.agritech-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    color: #999;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider span {
    padding: 0 20px;
    background: var(--ag-white);
    font-size: 14px;
}

.login-form {
    width: 100%;
}

.form-title {
    font-size: 32px;
    color: var(--ag-brown);
    margin-bottom: 10px;
    font-weight: bold;
}

.form-subtitle {
    color: var(--ag-brown);
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--ag-yellow);
}

.form-input::placeholder {
    color: #aaa;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 18px;
}
.password-icon{
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 18px;
}

.forgot-password {
    margin-bottom: 30px;
}

.forgot-password a {
    color: var(--ag-yellow);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--ag-yellow), var(--ag-yellow2));
    color: var(--ag-white);
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    section {
        flex-direction: column-reverse;
    }


    .left-section {
        height: 50vh;
        padding: 20px;
    }

    .right-section {
        width: 100%;
    }

    .description {
        font-size: 18px;
    }

    .logo {
        font-size: 36px;
    }
}

.language-dropdown {
    border: none;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    color: var(--ag-white);
}

.language-dropdown option {
    color: #000;
}

select:focus-visible {
    border: none;
    outline: transparent auto 0px;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
}

.language-options {
    position: absolute;
    top: 110%;
    left: 0;
    background: var(--ag-white);
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0;
    margin: 4px 0;
    width: 100%;
    z-index: 1000;
}

.language-options li {
    padding: 8px 12px;
    cursor: pointer;
    color: var(--ag-brown);
}

.language-options li:hover {
    background: #f0f0f0;
}


.form-section{
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.link-email{
    text-decoration: none;
    color: var(--ag-yellow);
}