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

body {
    font-family: 'Sora', sans-serif;
    background: linear-gradient(129deg, #8758f1 0%, #117a61 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}



.container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: white;
    border-radius: 24px 4px 24px 4px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    padding: 40px;
    position: relative;
    overflow: visible;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}



.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header a {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.login-header a:hover {
    transform: scale(1.05);
}

.login-header .logo {
    height: 60px;
    width: auto;
    margin-bottom: 8px;
    object-fit: contain;
}

.login-header p {
    color: #718096;
    font-size: 1rem;
    font-weight: 400;
}

.step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step h2 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
}

.input-group i.fa-eye {
    left: -10px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 24px 4px 24px 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.input-group input[type="password"] {
    padding-right: 50px;
}

.input-group input:focus {
    outline: none;
    border-color: #409A75;
    background: white;
    box-shadow: 0 0 0 3px rgba(64, 154, 117, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    z-index: 10;
}

.toggle-password:hover {
    color: #409A75;
}

.toggle-password.active {
    color: #409A75;
}

.save-data-option {
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #718096;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

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

.checkbox-container:hover .checkmark {
    border-color: #409A75;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #409A75;
    border-color: #409A75;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.search-container {
    position: relative;
    z-index: 10000;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f7fafc;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.search-result-item span {
    color: #2d3748;
    font-weight: 500;
}

.company-info {
    text-align: center;
    margin-bottom: 10px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
}

.company-info img {
    width: 180px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    background-color: #FFFFFF;
    padding: 20px;
}

.company-info h3 {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.company-info p {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-url {
    color: #a0aec0 !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0.2px;
    margin-top: 2px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.company-url:hover {
    color: #00b490 !important;
    text-decoration: underline;
}

.change-company-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #F4F4F4;
    border: 2px solid #E4E4E4;
    border-radius: 24px 4px 24px 4px;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
    width: 100%;
}

.change-company-btn:hover {
    border-color: #409A75;
    color: #409A75;
    background: #f7fafc;
}

.change-company-btn i {
    font-size: 0.9rem;
}

.panel-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 24px 4px 24px 4px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3748;
    position: relative;
    overflow: hidden;
}

.panel-btn:hover {
    border-color: #6B42D6;
    background: #f8f7ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 66, 214, 0.15);
}

.panel-btn.selected {
    border-color: #6B42D6;
    background: linear-gradient(135deg, #6B42D6 0%, #8B5CF6 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(107, 66, 214, 0.25);
}

.panel-btn i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    color: #6B42D6;
    transition: color 0.3s ease;
}

.panel-btn.selected i {
    color: white;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6B42D6 0%, #8B5CF6 100%);
    color: white;
    border: none;
    border-radius: 24px 4px 24px 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107, 66, 214, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.step-navigation {
    margin-top: 25px;
    display: flex;
    justify-content: flex-start;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 24px 4px 24px 4px;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-btn:hover {
    border-color: #409A75;
    color: #409A75;
    background: #f7fafc;
}

.clear-data-btn {
    margin-left: auto;
    border-color: #e53e3e;
    color: #e53e3e;
}

.clear-data-btn:hover {
    border-color: #c53030;
    color: #c53030;
    background: #fed7d7;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #409A75;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsividade */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .login-header .logo {
        height: 50px;
    }
    
    .step h2 {
        font-size: 1.3rem;
    }
    
    .panel-btn {
        padding: 15px;
    }
    
    .company-info img {
        width: 60px;
        height: 60px;
    }
}

/* Scrollbar personalizada */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 