/***
=============================================
Login Page
=============================================
***/
.login-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 0px 120px;
    z-index: 1;
}

.login-page__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../images/backgrounds/login.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.login-page__bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 32, 64, 0.75);
    z-index: 1;
}

.login-page__wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.login-page__inner {
    position: relative;
    display: block;
    width: 100%;
    max-width: 500px;
    background: #fff;
    padding: 60px 50px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Header do Login */
.login-page__header {
    position: relative;
    display: block;
    text-align: center;
    margin-bottom: 40px;
}

.login-page__logo {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.login-page__logo img {
    height: 60px;
    width: auto;
    padding: 12px;
    background: white;
    border: 3px solid #ff8c00;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
}

.login-page__header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.login-page__header p {
    font-size: 16px;
    color: #718096;
    margin: 0;
}

/* Formulário */
.login-page__form {
    position: relative;
    display: block;
    margin-bottom: 30px;
}

.login-page__input-box {
    position: relative;
    display: block;
    margin-bottom: 25px;
}

.login-page__input-box .icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 2;
}

.login-page__input-box .icon span {
    font-size: 18px;
    color: #718096;
    transition: color 0.3s ease;
}

.login-page__input-box input {
    width: 100%;
    height: 55px;
    padding: 0 50px 0 55px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #1a202c;
    background: #fff;
    transition: all 0.3s ease;
    font-family: var(--logistiq-font);
}

.login-page__input-box input:focus {
    border-color: #0a20c7;
    outline: none;
    box-shadow: 0 0 0 4px rgba(10, 32, 199, 0.1);
}

.login-page__input-box input:focus + .icon span {
    color: #0a20c7;
}

.login-page__input-box .password-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #718096;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    z-index: 2;
}

.login-page__input-box .password-toggle:hover {
    color: #0a20c7;
}

/* Opções (Lembrar-me e Esqueceu senha) */
.login-page__options {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.login-page__options .remember-me {
    display: flex;
    align-items: center;
}

.login-page__options .remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #0a20c7;
}

.login-page__options .remember-me label {
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    margin: 0;
}

.login-page__options .forgot-password a {
    font-size: 14px;
    color: #0a20c7;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-page__options .forgot-password a:hover {
    color: #1e3c72;
}

/* Botão de Login */
.login-page__btn {
    position: relative;
    display: block;
    margin-bottom: 0;
}

.login-page__btn button {
    width: 100%;
    height: 55px;
    border: none;
    cursor: pointer;
}

/* Divisor */
.login-page__divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}

.login-page__divider::before,
.login-page__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.login-page__divider span {
    padding: 0 15px;
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

/* Login Social */
.login-page__social {
    position: relative;
    display: block;
    margin-bottom: 30px;
}

.login-page__social .social-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 55px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--logistiq-font);
}

.login-page__social .social-btn:hover {
    border-color: #0a20c7;
    background: #f7fafc;
}

.login-page__social .social-btn img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* Footer do Login */
.login-page__footer {
    position: relative;
    display: block;
    text-align: center;
}

.login-page__footer p {
    font-size: 15px;
    color: #4a5568;
    margin: 0;
}

.login-page__footer p a {
    color: #0a20c7;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-page__footer p a:hover {
    color: #1e3c72;
}

/* Responsivo */
@media (max-width: 768px) {
    .login-page {
        padding: 80px 0px;
    }

    .login-page__inner {
        padding: 40px 30px;
        margin: 0 15px;
    }

    .login-page__logo img {
        height: 50px;
    }

    .login-page__header h2 {
        font-size: 24px;
    }

    .login-page__header p {
        font-size: 15px;
    }

    .login-page__input-box input {
        height: 50px;
        font-size: 14px;
    }

    .login-page__btn button {
        height: 50px;
    }

    .login-page__social .social-btn {
        height: 50px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-page__inner {
        padding: 30px 20px;
    }

    .login-page__header h2 {
        font-size: 22px;
    }

    .login-page__options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}


/***
=============================================
Register Page Specific Styles
=============================================
***/
.register-page .login-page__inner {
    max-width: 550px;
}

.register-page .login-page__options .remember-me label a {
    color: #0a20c7;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-page .login-page__options .remember-me label a:hover {
    color: #1e3c72;
    text-decoration: underline;
}

/* Ajuste para campos de senha duplos */
.register-page .login-page__input-box:nth-last-child(2) {
    margin-bottom: 25px;
}

/* Responsivo para Register */
@media (max-width: 768px) {
    .register-page .login-page__inner {
        max-width: 100%;
    }
}


/***
=============================================
Admin Login Page Specific Styles
=============================================
***/
.admin-login-page .login-page__header h2 {
    color: #0a20c7;
}

.admin-login-page .login-page__header p {
    color: #e53e3e;
    font-weight: 600;
}

.admin-login-page .login-page__logo img {
    border-color: #0a20c7;
}

/* Alert Error */
.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error i {
    font-size: 16px;
}
