/* ========================================
   ESTILOS EXCLUSIVOS DA PÁGINA DE LOGIN
   NÃO AFETA OUTRAS PÁGINAS
   ======================================== */

/* Escopo apenas para a página de login */
body.login-page {
    margin: 0;
    padding: 0;
    background-color: #00005a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
}

/* Container principal do login */
.login-container {
    width: 75%;
    height: 80vh;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Lado esquerdo com imagem */
.login-left {
    flex: 0.6;
    position: relative;
    background-color: #00005a;
}

.login-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e45200;
    opacity: 0.5;
}

/* Lado direito com formulário */
.login-right {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-logo {
    width: 300px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 60px;
}

.login-title {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 8px;
    color: #000;
}

.login-subtitle {
    font-size: 16px;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    width: 80%;
}

/* Botão de login social */
.login-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    border-radius: 20px;
    padding: 12px 16px;
    margin-bottom: 16px;
    width: 70%;
    cursor: pointer;
    transition: background-color 0.4s;
    background: none;
}

.login-social-button:hover {
    background-color: #f2f2f2;
}

.login-social-button img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.login-social-button span {
    font-size: 16px;
    color: #000;
}

.login-social-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Container de ajuda */
.login-help {
    margin-top: 16px;
    display: flex;
    gap: 5px;
}

.login-help-text {
    font-size: 16px;
    color: #666;
}

.login-help-link {
    font-size: 16px;
    color: #00005a;
    text-decoration: underline;
    cursor: pointer;
}

/* Mensagem de erro */
.login-error {
    color: red;
    margin: 16px 0;
    text-align: center;
    width: 70%;
    font-size: 14px;
}

/* Spinner de loading */
.login-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: login-spin 1s linear infinite;
    display: none;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

.login-button-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-button-content.loading .login-spinner {
    display: inline-block;
}

.login-button-content.loading img,
.login-button-content.loading span {
    display: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .login-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 24px;
    }

    .login-logo {
        width: 200px;
        height: 50px;
        margin-bottom: 40px;
    }

    .login-title {
        font-size: 20px;
    }

    .login-subtitle {
        font-size: 14px;
        width: 90%;
        margin-bottom: 30px;
    }

    .login-social-button {
        width: 90%;
    }
}
