.login-page {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f5f5f5;
    width: 100%;
}

.login-container {
    background: #ffffff;
    padding: 30px;
    width: 800px;
    height: 500px;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 40%;
    background: var(--color-primary);
    height: 100%;
    border-radius: 20px;
    color: #ffffff;
}

.left h2 {
    font-size: 25px !important;
    font-weight: bolder;
}

.left .big-icon {
    font-size: 100px;
    color: #ffffff;
    margin-bottom: 20px;
}

.left p {
    margin-top: -10px;
}

.right {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 50%;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.right h3.logo {
    font-size: 40px !important;
}

.right .login-form {
    width: 100%;
    padding: 0px 10px;
}

.big-icon.responsive {
    display: none;
}

.right h3.logo {
    font-family: "Audiowide", sans-serif;
    font-weight: 600;
    font-size: 40px;
    margin-bottom: 30px;
}

.right .form-footer.centered {
    width: 100%;
    margin: auto;
    align-items: center;
    justify-content: center;
}

.form-row.custom-input {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.form-row.custom-input label {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8c8c;
    font-size: 16px;
    transition: all 0.2s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 5px;
}

.form-row.custom-input input {
    width: 100%;
    padding: 16px 10px 5px;
    font-size: 16px;
    border: 1px solid #8c8c8c;
    border-radius: 10px;
    background: transparent;
    transition: all 0.2s ease;
    height: 56px;
    box-sizing: border-box;
}

.form-row.custom-input input:focus {
    outline: none;
    border-color: var(--color-primary);
    border-width: 2px;
}

.form-row.custom-input input:not(:placeholder-shown) + label,
.form-row.custom-input input:focus + label,
.form-row.custom-input input:-webkit-autofill + label,
.form-row.custom-input input:autofill + label {
    top: 10px;
    font-size: 12px;
    transform: translateY(0);
    color: var(--color-primary);
}

/* Para autocomplete do navegador */
.form-row.custom-input input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-row.custom-input input.filled + label,
.form-row.custom-input input.has-value + label {
    top: 10px;
    font-size: 12px;
    transform: translateY(0);
    color: #8c8c8c;
}

/* Estilo quando o input está focado e tem valor */
.form-row.custom-input input.filled:focus + label,
.form-row.custom-input input.has-value:focus + label {
    color: var(--color-primary);
}

/* Ajuste para inputs com autocomplete já preenchido */
.form-row.custom-input input.autofilled + label {
    top: 10px !important;
    font-size: 12px !important;
    transform: translateY(0) !important;
}

/* Estilo específico para input com foco */
.form-row.custom-input input:focus + label {
    color: var(--color-primary);
}

/* Estilo quando há erro */
.form-row.custom-input input.invalid {
    border-color: #e50914;
}

.form-row.custom-input input.invalid + label {
    color: #e50914;
}

.default-button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    height: 48px;
    margin-top: 10px;
    border-radius: 10px;
}

.default-button:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 79, 0.3);
}

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

.no-account {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    color: #555555;
}

.no-account a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* MODAL */
#login-error-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

#login-error-modal .modal-content {
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    animation: modalAppear 0.4s ease;
}

#login-error-modal .modal-icon {
    margin-bottom: 20px;
}

#login-error-modal h3 {
    margin: 0 0 16px 0;
    font-size: 26px;
    color: var(--color-text);
}

#login-error-modal p {
    font-size: 17px;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 25px;
}

#login-error-modal .modal-close {
    background: var(--color-primary);
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
}

#login-error-modal .modal-close:hover {
    background: #388e3c;
}

@keyframes modalAppear {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* RESPONSIVIDADE MOBILE */
@media screen and (max-width: 768px) {
    .login-container {
        width: 90%;
        max-width: 400px;
        padding: 30px 20px;
        flex-direction: column;
        height: auto;
        margin: 20px auto;
        box-shadow: none;
        background: transparent;
    }

    .left {
        display: none;
    }

    .right {
        width: 100%;
        padding: 0;
    }

    .login-form {
        width: 100%;
        padding: 0;                   
        max-width: none;
    }

    .form-row.custom-input {
        width: 100%;
        margin-bottom: 20px;
        display: block;
    }

    .form-row.custom-input input {
        width: 100% !important;
        box-sizing: border-box !important;   
        padding: 16px 14px 6px 14px;
        font-size: 16px;
        height: 56px;
    }

    .form-row.custom-input label {
        left: 10px;
        font-size: 16px;
    }

    .form-row.custom-input input:focus + label,
    .form-row.custom-input input:not(:placeholder-shown) + label {
        top: 10px;
        font-size: 12px;
        color: var(--color-primary);
    }

    .big-icon.responsive {
        display: block;
        font-size: 80px;
        color: var(--color-primary);
        margin-bottom: 10px;
    }

    .default-button {
        height: 52px;
        font-size: 17px;
    }
}

@media (max-width: 968px) and (orientation: landscape) {
    .login-container {
        flex-direction: row;
        height: 400px;
        box-shadow: none;
        background: transparent;
    }

    .left {
        display: flex;
    }

    .big-icon.responsive {
        display: none;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .left {
        display: none;
    }

    .login-container {
        height: 100%;
    }

    .login-form {
        width: 100%;
        padding: 0;                   
        max-width: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .form-row.custom-input {
        width: 100% !important;
        margin-bottom: 20px;
        display: block;
    }

    .form-row.custom-input input {
        width: 100% !important;
        box-sizing: border-box !important;   
        padding: 16px 14px 6px 14px;
        font-size: 16px;
        height: 56px;
    }
    .default-button {
        width: 55%;
    }
}

@media (max-width: 400px) {
    .default-button {
        width: 100%;
    }

    #login-error-modal .modal-content {
        max-width: none;
        width: 90%;
    }
}
