:root {
    --prolaif-orange: #f7931e;
    --prolaif-orange-dark: #d67a10;
    --prolaif-green: #7ac143;
    --prolaif-dark-green: #4b7c2a;
    --prolaif-dark: #2c3e50;
    --bg-light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--prolaif-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Barra Superior Estilo Prolaif */
header {
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header img {
    width: 10rem;
}

/* Contenedor Principal */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: var(--prolaif-orange-dark);
}

.herramienta {
    position: relative;
    width: 28rem;
    height: 28rem;
    border: 0.4rem solid white;
    background: linear-gradient(to bottom, transparent, transparent, white);
    border-radius: 0 0 25px 25px;

    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 20px 7px #0000003b;
    border-top: none;
}

/* --- LAS MARCAS DE MEDIDA (generadas con gradientes múltiples) --- */
.herramienta::after {
    content: "";
    position: absolute;
    top: 87px;
    left: 20px;
    width: 30px;
    height: 163px;
    background-image:
        linear-gradient(to top, white 5px, transparent 5px),
        /* Marca 1 (base) */ linear-gradient(to top, white 5px, transparent 5px),
        /* Marca 2 */ linear-gradient(to top, white 5px, transparent 5px);
    background-position:
        0 0,
        /* Primera marca */ 0 63px,
        /* Segunda marca */ 0 122px;
    background-size: 100% 5px;
    background-repeat: no-repeat;
}

.login-card {
    width: 100%;
    max-width: 23rem;
    padding: 40px;
    border-radius: 12px;

    transition: all 0.3s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #fff;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.form-control:focus {
    border-color: var(--prolaif-orange);
    box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.15);
}

.btn-submit {
    width: 100%;
    background-color: var(--prolaif-orange);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--prolaif-orange-dark);
}

/* Panel de Subida de Resultados (Oculto por defecto hasta simular login) */
.back-button {
    background: var(--prolaif-orange);
    padding: 1rem;
    border: 1px solid var(--prolaif-green);
    border-radius: 1rem;
    text-decoration: none;
    color: #fff;
}

.btn-logout {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 600px) {
    .herramienta::after {
        width: 14px;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #777;
    background: #fff;
    border-top: 1px solid #eee;
}
