/* HTML: <div class="loader"></div> */
.loader {
  width: fit-content;
  font-weight: bold;
  font-family: sans-serif;
  font-size: 30px;
  padding-bottom: 8px;
  background: linear-gradient(currentColor 0 0) 0 100%/0% 3px no-repeat;
  animation: l2 2s linear infinite;
}
.loader:before {
  content:"Enviando..."
}
@keyframes l2 {to{background-size: 100% 3px}}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
}

.container-body {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
}

.login-modal-overlay {
    width: 100%;
    height: 100%;
    background: rgba(108, 117, 125, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
}

.login-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.login-modal-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header */
.modal-header {
    padding: 3rem 3rem 0;
    text-align: center;
    border-bottom: none;
    background-color: #fff !important;
}

.logo-link {
    cursor: pointer;
    display: inline-block;
}

.svg-logo .st0 {
    fill: #043f20;
}

/* Título */
.modal-title-section {
    padding: 3rem 3rem 2.5rem;
    border-bottom: none;
    text-align: left;
}

.login-title {
    font-weight: bold;
    margin: 0;
    font-size: 1.5rem;
    color: #212529;
    text-align: left;
    border-bottom: none !important;
}

/* Corpo do modal */
.modal-body {
    padding: 0 3rem 3rem;
}

.login-form {
    width:calc(100% - 6rem);
}

/* Campos do formulário */
.form-field {
    margin-bottom: 1rem;
}

.form-input {
    width: calc(100% - 40px);
    padding: 12px 20px;
    border: 1px solid #ced4da;
    border-radius: 12px;
    font-size: 16px;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: #043f20;
    box-shadow: 0 0 0 3px rgba(4, 63, 32, 0.1);
}

/* Ações do formulário */
.form-actions {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin: 0 0 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.link-action {
    border: none;
    font-size: 14px;
    background-color: transparent;
    margin: 0;
    padding: 0;
    color: #043f20;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.link-action:hover {
    color: #065a2e;
    text-decoration: underline;
}

.btn-link {
    font-family: inherit;
}

/* Botão de login */
.btn-login {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 12px;
    font-size: 1.125rem;
    border-radius: 12px;
    border: none;
    background-color: #043f20;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #065a2e;
    transform: translateY(-1px);
}

/* Mensagens */
.messages {
    margin-bottom: 10px;
}

.message-error {
    color: #dc3545;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.message-success {
    color: #28a745;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

/* Texto dos termos */
.terms-text {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
    display: block;
    text-align: center;
}

.terms-link {
    text-decoration: none;
    color: #043f20;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Divisor */
.divider {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid #dee2e6;
}

/* Título social */
.social-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #212529;
    text-align: center;
}

/* Botões sociais */
.social-button-container {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
}

.google-signin-container {
    width: 100%;
    border-radius: 12px;
}

/* Responsividade */
@media (max-width: 576px) {
    .login-modal-overlay {
        padding: 1rem;
    }
    
    .modal-header,
    .modal-title-section,
    .modal-body {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .link-action {
        text-align: center;
    }
}