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

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin: 0;
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #f0f2f5;
    overflow: hidden;
}

/* ----- INPUT GROUP COM FLOATING LABEL ----- */
.input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.input-group input,
.input-group select,
textarea {
    width: 100%;
    padding: 14px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    background: white;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    background: white;
    padding: 0 4px;
    color: #aaa;
    font-size: 16px;
    pointer-events: none;
    transition: 0.2s ease all;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: #333;
}

.input-group select:focus + label,
.input-group select:valid + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: #333;
}

/* ----- CAMPOS DE INPUT, SELECT E TEXTAREA ----- */
input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select,
textarea {
    color: #aebfd0;
    /*background-color: #2c3e50;*/
    border: 1px solid #3d5a71;
    padding: 1.1em 1.2em;
    border-radius: 8px;
    font-size: 1.1em;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

input::placeholder,
textarea::placeholder {
    color: #7f8c8d;
    opacity: 0.8;
}

/* Estilo visual das opções dentro do select dropdown */
select option {
    /*background-color: #2c3e50;*/
    color: #aebfd0;
}

/* ----- CHECKBOX ----- */
input[type="checkbox"] {
    margin-right: 0.7em;
    width: 18px;
    height: 18px;
    accent-color: #4CAF50;
    cursor: pointer;
}

.remember-me label {
    color: #aebfd0;
    font-size: 0.9em;
    cursor: pointer;
}

/* ----- BOTÕES ----- */
button[type="submit"],
.btn-primary {
    width: 100%;
    padding: 1.2em;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    letter-spacing: 0.05em;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

button[type="submit"]:hover,
.btn-primary:hover {
    background-color: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(76, 175, 80, 0.6);
}

button[type="submit"]:active,
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

/* ----- LINKS ----- */
.link-secondary {
    color: #4CAF50;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.link-secondary:hover {
    color: #6bcc6f;
    text-decoration: underline;
}

/* ----- RESPONSIVIDADE SEMPRE NO FIM ----- */
@media (max-width: 600px) {
    input[type="email"],
    input[type="password"],
    input[type="text"],
    input[type="number"],
    select,
    textarea {
        padding: 0.9em 1em;
        font-size: 1em;
    }

    button[type="submit"],
    .btn-primary {
        padding: 1em;
        font-size: 1.1em;
    }
}
