* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    /* Grid Pattern */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: -1px -1px;
    min-height: 100vh;
}

/* Header */
header {
    background: var(--bg-color);
    padding: 15px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo {
    max-height: 60px;
    object-fit: contain;
}

.padlock-login {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.padlock-login:hover {
    color: var(--primary-color);
}

/* Mobile hiding for padlock */
@media (max-width: 768px) {
    .padlock-login {
        display: none !important;
    }
}

/* Hero Carousel */
.hero-carousel {
    width: 100%;
    height: 50vh;
    min-height: 400px;
    position: relative;
    z-index: 1;
    background-color: transparent;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top; /* Evita cortar a cabeça das pessoas */
    background-repeat: no-repeat;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}
.swiper-button-next, .swiper-button-prev {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Form Container */
.container {
    max-width: 800px;
    margin: -60px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.form-container {
    max-width: 600px;
    margin: -50px auto 40px;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15); /* Sombra mais destacada */
    position: relative;
    z-index: 2;
}

.main-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Inputs */
.input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
        gap: 0;
    }
}

.input-group {
    flex: 1;
    margin-bottom: 20px;
}

.input-group.flex-2 { flex: 2; }
.input-group.flex-1 { flex: 1; }

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    background: #fdfdfd;
    transition: all 0.3s ease;
    outline: none;
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    background: #fff;
}

input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #777;
}

/* Buttons */
@keyframes pulseVibrate {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 15px rgba(0, 122, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: 0.3s ease;
    animation: pulseVibrate 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.5);
    animation: none; /* Pause pulse on hover so the translateY applies well */
}

.btn-secondary {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: scale(1.05);
    background: #333;
}

/* SweetAlert customization */
.swal2-popup {
    border-radius: 20px !important;
    padding: 2em !important;
}

.swal2-title {
    font-family: 'Inter', sans-serif !important;
}

/* Custom premium popup */
.premium-popup {
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
}

.premium-popup .swal2-actions {
    padding-bottom: 30px !important;
}

.btn-primary-swal {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.2) !important;
}

.btn-secondary-swal {
    background: transparent !important;
    color: #888 !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border: none !important;
}

/* Dashboard App Screen specific */
.app-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
