/* webroot/login/css/modern-login.css */

/* Reset & Base Configs */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--cor-primaria, #f4f7f6);
}

/* Flexbox Layout (Split Screen) */
.modern-login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-left-pane {
    flex: 1;
    /* The background image and color are injected via inline style in default_login.ctp */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Optional Overlay on the left pane to make it look premium */
.login-left-pane::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Subtle dark overlay */
}

.login-right-pane {
    flex: 0 0 650px; /* Alargado para caber o texto gigante sem quebrar linhas */
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Form Wrap */
.wrap-login-modern {
    width: 100%;
    max-width: 500px; /* Alargado também para acompanhar o painel */
}

/* Titles */
.login-form-title {
    font-size: 2.8rem; /* Titulo Gigante */
    color: #313740;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
    display: block;
}

/* Inputs */
.wrap-input-modern {
    width: 100%;
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: #fdfdfd;
}

.wrap-input-modern:focus-within {
    border-color: var(--cor-primaria, #004155);
    box-shadow: 0 0 0 4px rgba(0, 65, 85, 0.1); /* Fallback cor-primaria */
    background: #fff;
}

.symbol-input-modern {
    padding-left: 20px;
    color: #999;
    font-size: 1.8rem; /* Ícones grandes */
    display: flex;
    align-items: center;
}

.input-modern {
    width: 100%;
    border: none;
    background: transparent;
    padding: 22px;
    font-size: 1.5rem; /* Texto do input bem grande para facilitar leitura */
    color: #333;
    outline: none;
}

.input-modern::placeholder {
    color: #aaa;
    font-size: 1.5rem;
}

/* Buttons */
.login-btn-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-modern-primary {
    flex: 1;
    background: var(--cor-botao-login, #004155);
    color: var(--cor-titulo-login, #ffffff);
    border: none;
    border-radius: 8px;
    padding: 20px;
    font-size: 1.6rem; /* Texto do botão super legível */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-modern-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-modern-icon {
    background: var(--cor-botao-login, #4a5568);
    color: var(--cor-titulo-login, #ffffff);
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-modern-icon:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Action Links */
.login-links-container {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-link-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--cor-titulo-login, #ffffff);
    font-weight: 700; /* Destaque enorme para os nomes */
    font-size: 1.3rem; /* Links enormes para leitura fácil */
    padding: 18px;
    border-radius: 8px;
    background: var(--cor-botao-login, #4a5568); /* Segue a cor dinâmica */
    transition: all 0.3s ease;
    border: none;
}

.login-link-modern i {
    margin-right: 12px;
    font-size: 1.3rem;
    color: var(--cor-titulo-login, #ffffff);
}

.login-link-modern:hover {
    opacity: 0.9;
    color: var(--cor-titulo-login, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Flash Messages */
.alert {
    padding: 15px;
    background-color: #ffebee;
    color: #c62828;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #c62828;
}

/* Responsiveness */
@media (max-width: 768px) {
    .modern-login-wrapper {
        flex-direction: column;
    }

    .login-left-pane {
        flex: 0 0 200px; /* Transform into a top banner on mobile */
    }

    .login-right-pane {
        flex: 1;
        width: 100%;
        padding: 30px 20px;
        box-shadow: none;
        border-radius: 20px 20px 0 0;
        margin-top: -20px; /* Pull up to overlap the background slightly */
        z-index: 20;
    }
}
