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

/* ECO GREEN BACKGROUND (no image, subtle texture) */
body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333;

    /* Green ecological gradient */
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);

    /* Subtle noise texture for premium look */
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
    opacity: 0.35;
}

/* Form */
form {
    background: rgba(255, 255, 255, 0.96);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 480px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

form:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.lang-link:hover {
    transform: scale(1.1);
}

/* Logo */
#logo {
    width: 260px;
    margin-bottom: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

#logo:hover {
    transform: scale(1.04);
}

/* Inputs */
fieldset {
    border: none;
    margin-bottom: 22px;
}

.legend {
    font-size: 0.9em;
    margin-bottom: 6px;
    color: #555;
    text-align: left;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    margin-top: 5px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.4);
    outline: none;
}

/* Button */
input[type="submit"] {
    width: 100%;
    padding: 18px;
    background-color: #2e7d32;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    font-family: 'Montserrat', sans-serif;
}

input[type="submit"]:hover {
    background-color: #256b29;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

#recuperapasswordlink {
    background: none;
    border: none;
    color: #2e7d32;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95em;
    margin-top: 10px;
}

#recuperapasswordlink:hover {
    color: #1b5e20;
}

/* Checkbox */
input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    form {
        padding: 40px 25px;
        max-width: 90%;
    }

    #logo {
        width: 170px;
    }
}
