/***********************************
############## LOGIN ###############
***********************************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.login_container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Lado Esquerdo - Formulário */
.login_left {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.login_content {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login_logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 2rem;
}

.login_title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.login_subtitle {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 2rem;
}

.login_form {
    text-align: left;
    width: 100%;
}

.form_group {
    margin-bottom: 1.5rem;
}

.form_label {
    display: block;
    width: 100%;
}

.label_text {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    text-align: left;
}

.password_wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password_wrapper input {
  width: 100%;
  padding-right: 2.75rem;
}

.toggle_password {
  position: absolute;
  right: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  cursor: pointer;
  outline: none;
}

.toggle_password svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.toggle_password:focus-visible {
  box-shadow: 0 0 0 3px rgba(26,188,156,.35);
  border-radius: 6px;
}

.form_label input[type="email"],
.form_label input[type="password"],
.form_label input[type="text"],
.form_label input[type="tel"],
.form_label select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form_label input:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form_label select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;

    /* Remove a seta padrão */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Ícone SVG embutido */
    background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 18px;
}


.form_options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox_label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: #4a5568;
    user-select: none;
}

.checkbox_label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox_label input[type="checkbox"]:checked + .checkmark {
    background: #1abc9c;
    border-color: #1abc9c;
}

.checkbox_label input[type="checkbox"]:checked + .checkmark:after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form_submit {
    position: relative;
    margin-bottom: 2rem;
}

.btn_login {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #000 0%, #1abc9c 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn_login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn_login:active {
    transform: translateY(0);
}

.form_load {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.login_links {
    text-align: center;
    margin-bottom: 2rem;
}

.link_primary, .link_secondary {
    display: inline-block;
    margin: 0 0.5rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link_primary {
    color: #1abc9c;
    font-weight: 600;
}

.link_primary:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.link_secondary {
    color: #718096;
    font-weight: 500;
}

.link_secondary:hover {
    color: #4a5568;
    text-decoration: underline;
}

.login_footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.partner_logo {
    max-width: 100px;
    height: auto;
    opacity: 0.7;
}

/* Lado Direito - Visual */
.login_right {
    flex: 1;
    background: linear-gradient(135deg, #000 0%, #1abc9c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login_visual {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 770px;
    padding: 2rem;
}

.visual_title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.visual_subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.visual_subtitle.login {
    font-size: 2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature_item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature_icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.feature_item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Efeito decorativo no lado direito */
.login_right:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Responsividade */
@media (max-width: 1024px) {
    .login_container {
        flex-direction: column;
    }
    
    .login_left, .login_right {
        flex: none;
    }
    
    .login_left {
        min-height: 60vh;
        padding: 1.5rem;
    }
    
    .login_right {
        min-height: 40vh;
    }
    
    .visual_title {
        font-size: 2rem;
    }
    
    .features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feature_item {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .login_container {
        height: auto;
        min-height: 100vh;
    }
    
    .login_left {
        padding: 1rem;
    }
    
    .login_content {
        max-width: 350px;
    }
    
    .login_title {
        font-size: 1.75rem;
    }
    
    .visual_title {
        font-size: 1.75rem;
    }
    
    .features {
        flex-direction: column;
    }
    
    .feature_item {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .login_right {
        display: none;
    }
    
    .login_left {
        min-height: 100vh;
    }
    
    .login_links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Callback messages styling */
.callback_return {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
}

.callback_return.trigger_accept {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.callback_return.trigger_error {
    background: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

/* Utility classes */
.none {
    display: none !important;
}

.clear {
    clear: both;
}

.spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px; 
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
