*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


:root {
    --bg:        #0e110d;
    --bg-card:   #141812;
    --border:    rgba(180, 160, 110, 0.18);
    --gold:      #b4a06e;
    --gold-light:#d4c08e;
    --text:      #e8e2d4;
    --text-muted:#9a9282;
    --accent:    #6b8c5a;
    --green:     #4a7a3a;
    --green-deep: #2d4a35;
    --font-display: 'Merriweather', Georgia, serif;
    --font-body: 'Merriweather', sans-serif;
}
body{
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: var(--font-body);
    background:
        linear-gradient(
            to bottom,
            rgba(8, 16, 10, 0.60) 0%,
            rgba(8, 16, 10, 0.30) 50%,
            rgba(8, 16, 10, 0.70) 100%
        ),
        url('../Imagenes/adaptogenos.web.webp') no-repeat;
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 1rem;
}


/*logo agromicro*/

.login-logo {
    text-align: center;
    margin-bottom: 2.4rem;
    animation: fadeDown 0.7s ease both;
}

.login-logo .logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    flex-shrink: 0;
    overflow: hidden;
}



.logo-mark img{
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.login-logo a {
    display: flex;          
    align-items: center;
    gap: 12px;
    
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #fff;;
    text-decoration: none;
}

/* dividor */

.elem-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0 1.6rem;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.divider-ornament {
    color: var(--gold);
    font-size: 0.9rem;
    opacity: 0.7;
}

.card-header h1 em {
    font-style: var(--font-display);
    color: var(--gold-light);
}

/*folder*/
.field-group {
    position: relative;
    margin-bottom: 1.4rem;
}
.field-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0 0.5rem;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    outline: none;
    transition: border-color 0.3s;
    caret-color: var(--gold);
}
.field-group input:focus {
    border-color: var(--gold);
}
.field-group label {
    position: absolute;
    left: 0;
    top: 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.25s ease;
}
.field-group input:focus + label,
.field-group input:not(:placeholder-shown) + label {
    top: -0.1rem;
    font-size: 0.6rem;
    color: var(--gold);
}

.formulario{
    position: relative;
    width: 100%;
    max-width: 450px;
    background: rgba(14, 20, 12, 0.55);
    backdrop-filter: blur(18px) saturate(1.4);
    box-shadow:
        0 0 0 1px rgba(75, 120, 60, 0.08) inset,
        0 8px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(180, 160, 110, 0.28);
    padding: 2.4rem 1.6rem 2rem;
    animation: fadeUp 0.7s 0.1s ease both;
    border-radius: 0.65rem;
    
}

.formulario::before, .formulario::after,
.formulario .corner-b::before, .formulario .corner-b::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    border-color: var(--gold);
    border-style: solid;
    opacity: 0.5;
}
.formulario::before  { top: 10px; left: 10px;  border-width: 1px 0 0 1px; }
.formulario::after   { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.formulario .corner-b::before { bottom: 10px; left: 10px;  border-width: 0 0 1px 1px; }
.formulario .corner-b::after  { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

.formulario form{
    padding: 0;
    box-sizing: border-box;
}

/*card papa*/

.card-header {
    text-align: center;
    margin-bottom: 2.2rem;
}
.section-tag {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color:var(--gold-light);
    margin-bottom: 0.7rem;
}

.margin-section-tag {
    margin-top: 0.7rem;
}
.card-header h1 {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 300;
    color: #ffffffd3;;
    line-height: 1.1;
}
.card-header h1 em {
    font-family: 'Montserrat', sans-serif;;
    font-style: italic;
    color: var(--gold-light);
}


/*folder*/

.field-group {
    position: relative;
    margin-bottom: 1.4rem;
}
.field-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0 0.5rem;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    outline: none;
    transition: border-color 0.3s;
    caret-color: black;
}
.field-group input:focus {
    border-color: var(--gold);
}
.field-group label {
    position: absolute;
    left: 0;
    top: 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
    pointer-events: none;
    transition: all 0.25s ease;
}
.field-group input:focus + label,
.field-group input:not(:placeholder-shown) + label {
    top: -0.1rem;
    font-size: 0.6rem;
    color: var(--gold);
}

/*contraseña*/

.forgot {
    text-align: right;
    margin-top: -0.6rem;
    margin-bottom: 1.8rem;
}
.forgot a {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.2s;
}
.forgot a:hover { color: var(--gold-light); }


/*boton*/

.cta_button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--green-deep);
    border: 1px solid var(--green-deep);
    color: var(--gold-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 0.9rem 1.6rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.35s;
    margin-bottom: 1.6rem;
    border-radius: 3rem;
}
.cta_button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.cta_button:hover::before { transform: scaleX(1); }
.cta_button:hover { color: #e8e2d4; }
.cta_button span, .cta_button svg { position: relative; z-index: 1; }

.formulario form{
    padding: 0 40px;
    box-sizing: border-box;
}

/* Registarse  */
.register {
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--gold-light);
}
.register a {
    color:var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(180,160,110,0.3);
    padding-bottom: 1px;
    transition: border-color 0.2s;
}
.register a:hover { border-color: var(--gold-light); }

/* Footer */
.login-footer {
    margin-top: 2rem;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--gold-light);
    opacity: 0.5;
    animation: fadeUp 0.7s 0.25s ease both;
}

/*celulares*/

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


@media (max-width: 150px) {
    .login-logo a {
        font-size: 0.5rem;
    }
    .card-header h1 {
        font-size: 1.2rem;
    }
    .formulario {
        padding: 2rem 1.2rem 1.8rem;
    }
}

/* Tablets y escritorio */

@media (min-width: 600px) {
    body {
        padding: 3rem 2rem;
    }
    .formulario {
        padding: 3rem 2.8rem 2.6rem;
    }
    .formulario form {
        padding: 0 20px;
    }
}