
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #EBFAE8;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.Tarjeta {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    background-color: #F8FAFC;
    border-radius: 30px;
    box-shadow: 10px 10px 25px rgba(14, 61, 49, 0.15);
    overflow: hidden;
    gap: 10px;
    opacity: 0;
    animation: entradaSuave 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards ;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px 0 30px;
}

header img{
    width: 80px;
    height: auto;
    filter: invert(24%) sepia(87%) saturate(464%) hue-rotate(116deg) brightness(93%) contrast(101%);
}

header h1 {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: bold;
    color: #006a4e;
    text-align: center;
    margin: 15px 0 0 0;
    letter-spacing: 0.5px;
    
}

.Descripcion{
    font-size: 0.95rem;
    color: #64748b;
    margin: 12px 0 0 0;
    line-height: 1.5;
    text-align: center;
}

#Formulario {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 10px 40px 40px 40px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.Campo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.Campo label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgb(96, 96, 96);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.Campo:has(input:focus) label {
    color:#006a4e;
    transform: translateY(-2px);
}

.Campo input {
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    border-radius: 8px 8px 0 0;
    border: none;
    border-bottom: rgb(180, 180, 180) 2px solid;
    background-color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.Campo input:focus{
    outline: none;
    border-bottom-color: #006a4e;
    background-color: #eef2f6;
}

.Campo input:user-invalid {
    border-bottom-color: #d32f2f;
    background-color: #fff5f5;
}

.Campo:has(input:user-invalid) label {
    color: #d32f2f;
}

#Reset{
    color: white;
    background-color: #006a4e;
    margin-top: 10px;
    padding: 14px 0px;
    width: 100%;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    box-shadow: 0 4px 10px rgba(0, 106, 48, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#Reset:hover{
    background-color: #004d38;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 106, 48, 0.25); 
}

#Reset:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 106, 48, 0.15);
}

#Formulario a {
    color: #006a4e;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    margin-top: 5px;
}

#Formulario a::after{
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #006a4e;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

#Formulario a:hover::after{
    transform: scaleX(1);
    transform-origin: bottom left ;
}

#Reset:focus-visible,
#Formulario a:focus-visible{
    outline: 3px solid #256c51;
    outline-offset: 4px;
}

@keyframes entradaSuave {
    from{
        opacity: 0;
        transform: translateY(20px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    body{
        padding: 0;
    }

    .Tarjeta{
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
        justify-content: center;
    }

    #Formulario{    
        padding: 20px 25px 40px 25px;
    }
    
}