@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;500;700&family=Montserrat:wght@600;700&display=swap');

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

body {
    font-family: 'Lato', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #004519;
}

.container {
    background: #ffffff;
    width: 100%;
    max-width: 980px;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #004519;
    box-shadow: 0 30px 30px rgba(0, 69, 25, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    text-align: center;
    color: #004519;
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo {
    width: min(220px, 55vw);
    height: auto;
}

form {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.2rem;
}

.form-group {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #004519;
    font-weight: 500;
    font-size: 0.95rem;
}

input,
select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    background: #fafbfc;
}

input:focus,
select:focus {
    outline: none;
    border-color: #009b49;
    box-shadow: 0 0 0 4px rgba(0, 155, 73, 0.1);
    background: #ffffff;
}

select {
    padding: 13px 45px 13px 16px;
    background-color: #fafbfc;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23004519' viewBox='0 0 20 20'%3e%3cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#password,
#confirm_password {
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' ry='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

button {
    grid-column: 1 / -1;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #009b49 0%, #00af50 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 155, 73, 0.3);
    background: linear-gradient(135deg, #00af50 0%, #009b49 100%);
}

.error {
    grid-column: 1 / -1;
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
    font-weight: 500;
}

p {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
}

p a {
    color: #009b49;
    text-decoration: none;
    font-weight: 600;
}

p a:hover {
    text-decoration: underline;
    color: #004519;
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1.2rem;
    }

    form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 1.6rem 1rem;
        border-radius: 10px;
    }

    h2 {
        font-size: 1.4rem;
    }

    button {
        font-size: 1rem;
        padding: 12px;
    }
}
