
/* ========================================
   TEKNIVO - LOGIN
======================================== */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: Inter, Arial, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}


/* ========================================
   LOGIN - CONTAINER
======================================== */

.login-container {
    width: 100%;
    max-width: 420px;
    background: #f8f9fa;
    padding: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;

    box-shadow:
        0 20px 45px rgba(15, 23, 42, .08),
        0 4px 12px rgba(15, 23, 42, .04);
}


/* ========================================
   LOGIN - MARCA
======================================== */

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

.login-header h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #111827;
}

.login-header p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
}


/* ========================================
   LOGIN - FORMULÁRIO
======================================== */

.login-container form {
    width: 100%;
}


/* ========================================
   LOGIN - CAMPOS
======================================== */

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

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

.form-group input {
    display: block;
    width: 100%;
    height: 46px;
    min-width: 0;
    padding: 0 14px;

    border: 1px solid #cbd5e1;
    border-radius: 10px;

    background: #f8fafc;
    color: #1e293b;

    font-family: inherit;
    font-size: 14px;
    line-height: normal;

    outline: none;

    -webkit-appearance: none;
    appearance: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.form-group input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.form-group input:hover {
    border-color: #94a3b8;
}

.form-group input:focus {
    background: #ffffff;
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .12);
}


/* ========================================
   LOGIN - AUTOFILL
======================================== */

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #1e293b;

    -webkit-box-shadow:
        0 0 0 1000px #ffffff inset;

    box-shadow:
        0 0 0 1000px #ffffff inset;

    caret-color: #1e293b;

    transition:
        background-color 9999s ease-out 0s;
}

.form-group input:autofill {
    color: #1e293b;
    caret-color: #1e293b;
}


/* ========================================
   LOGIN - BOTÃO
======================================== */

.login-button {
    display: block;
    width: 100%;
    height: 46px;

    border: 0;
    border-radius: 10px;

    background: #2563eb;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
    touch-action: manipulation;

    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, .20);
}

.login-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);

    box-shadow:
        0 7px 16px rgba(37, 99, 235, .25);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 3px;
}

.login-button:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}


/* ========================================
   LOGIN - CADASTRO
======================================== */

.register-link {
    text-align: center;
    margin-top: 24px;
}

.register-link p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.register-link a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.register-link a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    border-radius: 2px;
}


/* ========================================
   LOGIN - RESPONSIVO
======================================== */

@media (max-width: 480px) {

    body {
        padding: 15px;
    }

    .login-container {
        padding: 30px 22px;
        border-radius: 15px;
    }

    .login-header {
        margin-bottom: 28px;
    }

    .login-header h1 {
        font-size: 26px;
    }

    .form-group input {
        height: 48px;
        font-size: 16px;
    }

    .login-button {
        height: 48px;
        font-size: 15px;
    }

}


/* ========================================
   TELAS MUITO PEQUENAS
======================================== */

@media (max-width: 360px) {

    body {
        padding: 12px;
    }

    .login-container {
        padding: 26px 18px;
    }

    .login-header h1 {
        font-size: 24px;
    }

}


/* ========================================
   ACESSIBILIDADE - MOVIMENTO REDUZIDO
======================================== */

@media (prefers-reduced-motion: reduce) {

    .form-group input,
    .login-button {
        transition: none;
    }

}
