/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #DC143C;
    --secondary-color: #C41E3A;
    --success-color: #25D366;
    --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --tiktok-color: #000000;
    --facebook-color: #1877F2;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --background: #FFFFFF;
    --surface: #FFF5F5;
    --border-radius: 16px;
    --shadow: 0 8px 32px rgba(220, 20, 60, 0.1);
    --shadow-hover: 0 16px 64px rgba(220, 20, 60, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container principal */
.container {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Efeitos liquid de fundo */
.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

/* Efeitos líquidos de fundo */
.blob-1 {
    position: absolute;
    top: 10%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(220, 20, 60, 0.1), rgba(196, 30, 58, 0.1));
    border-radius: 50% 40% 60% 30%;
    animation: blob1 20s infinite ease-in-out;
    z-index: -1;
}

.blob-2 {
    position: absolute;
    top: 60%;
    right: -10%;
    width: 180px;
    height: 180px;
    background: linear-gradient(45deg, rgba(196, 30, 58, 0.08), rgba(255, 23, 68, 0.08));
    border-radius: 40% 60% 30% 50%;
    animation: blob2 25s infinite ease-in-out;
    z-index: -1;
}

.blob-3 {
    position: absolute;
    bottom: 10%;
    left: 20%;
    width: 160px;
    height: 160px;
    background: linear-gradient(45deg, rgba(255, 23, 68, 0.06), rgba(178, 34, 34, 0.06));
    border-radius: 60% 30% 50% 40%;
    animation: blob3 30s infinite ease-in-out;
    z-index: -1;
}

.blob-4 {
    position: absolute;
    top: 30%;
    right: 30%;
    width: 140px;
    height: 140px;
    background: linear-gradient(45deg, rgba(178, 34, 34, 0.05), rgba(220, 20, 60, 0.05));
    border-radius: 30% 50% 40% 60%;
    animation: blob4 35s infinite ease-in-out;
    z-index: -1;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, -10px) scale(1.05);
    }
}

/* Conteúdo principal */
.content {
    width: 100%;
    max-width: 480px;
    text-align: center;
    z-index: 1;
}

/* Seção do logo */
.logo-container {
    margin-bottom: 48px;
    animation: fadeInUp 1s ease-out;
}

.logo-wrapper {
    width: 180px;
    height: 180px;
    /*background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    box-shadow: var(--shadow);
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.brand-description {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 16px 0;
    animation: slideInFromTop 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.brand-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 40px 0;
    animation: slideInFromTop 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

/* Container do botão do site */
.website-button-container {
    margin-bottom: 32px;
}

.website-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    padding: 24px 28px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, #DC143C 0%, #C41E3A 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(220, 20, 60, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInFromTop 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.website-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.website-button:hover::before {
    left: 100%;
}

.website-button:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 60px rgba(220, 20, 60, 0.4);
}

.website-button:active {
    transform: translateY(-3px) scale(1.01);
}

.website-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-size: 22px;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.website-button:hover .website-icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(255, 255, 255, 0.3);
}

.website-content {
    flex: 1;
    text-align: left;
}

.website-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.website-subtitle {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.website-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 16px;
}

.website-button:hover .website-arrow {
    transform: translateX(4px) scale(1.1);
    color: white;
}

/* Container dos links */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

/* Links sociais */
.social-link {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: fadeInUp 1s ease-out;
}

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.3s; }
.social-link:nth-child(4) { animation-delay: 0.4s; }

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.social-link:active {
    transform: translateY(-2px) scale(1.01);
}

/* Ícones dos links */
.link-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 20px;
    color: white;
    transition: all 0.3s ease;
}

.whatsapp .link-icon {
    background: var(--success-color);
}

.instagram .link-icon {
    background: var(--instagram-gradient);
}

.tiktok .link-icon {
    background: var(--tiktok-color);
}

.facebook .link-icon {
    background: var(--facebook-color);
}

.social-link:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Conteúdo dos links */
.link-content {
    flex: 1;
    text-align: left;
}

.link-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.link-subtitle {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Seta dos links */
.link-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover .link-arrow {
    transform: translateX(4px);
    color: var(--primary-color);
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Botão administrativo no canto superior direito */
.admin-button-top {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(220, 20, 60, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.admin-button-top:hover {
    opacity: 1;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.2);
}

.admin-button-top:active {
    transform: scale(0.95) rotate(90deg);
}

/* Modal de senha administrativo */
.admin-password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.admin-password-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

.admin-password-header {
    text-align: center;
    margin-bottom: 25px;
}

.admin-password-header i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.admin-password-header h3 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.admin-password-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.admin-password-form {
    margin-bottom: 20px;
}

#adminPasswordInput {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#adminPasswordInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.admin-password-buttons {
    display: flex;
    gap: 15px;
}

.admin-btn-cancel,
.admin-btn-confirm {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.admin-btn-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.admin-btn-confirm {
    background: var(--primary-color);
    color: white;
}

.admin-btn-confirm:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.admin-password-error {
    display: none;
    background: #fee;
    color: #c33;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #fcc;
}

.admin-password-error i {
    margin-right: 8px;
}

/* Mensagem de sucesso */
.admin-success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    animation: fadeIn 0.3s ease-out;
}

.admin-success-content {
    background: #4CAF50;
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.admin-success-content i {
    font-size: 24px;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .content {
        max-width: 100%;
    }
    
    .logo-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .logo {
        width: 110px;
        height: 110px;
    }
    
    .brand-description {
        font-size: 16px;
    }
    
    .brand-subtitle {
        font-size: 15px;
    }
    
    .website-button {
        padding: 20px 24px;
    }
    
    .website-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin-right: 16px;
    }
    
    .website-title {
        font-size: 16px;
    }
    
    .website-subtitle {
        font-size: 13px;
    }
    
    .social-link {
        padding: 16px 20px;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .blob-1, .blob-2, .blob-3, .blob-4 {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        width: 130px;
        height: 130px;
    }
    
    .logo {
        width: 90px;
        height: 90px;
    }
    
    .brand-description {
        font-size: 15px;
    }
    
    .brand-subtitle {
        font-size: 14px;
    }
    
    .website-button {
        padding: 18px 20px;
    }
    
    .website-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 14px;
    }
    
    .website-title {
        font-size: 15px;
    }
    
    .website-subtitle {
        font-size: 12px;
    }
    
    .social-link {
        padding: 14px 16px;
    }
    
    .link-title {
        font-size: 15px;
    }
    
    .link-subtitle {
        font-size: 13px;
    }
}

/* Efeitos de hover para dispositivos touch */
@media (hover: none) {
    .social-link:hover {
        transform: none;
    }
    
    .social-link:active {
        transform: scale(0.98);
    }
}

/* Estilos para o novo modal de login */
.supabase-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.supabase-login-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.supabase-login-content h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.supabase-login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.supabase-login-form input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.supabase-login-form input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.supabase-login-form button {
    padding: 12px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.supabase-login-form button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.supabase-login-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.supabase-login-message {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

.supabase-login-message.error {
    background: #ffe6e6;
    color: #d63384;
    border: 1px solid #f5c6cb;
}

.supabase-login-message.success {
    background: #e6f7e6;
    color: #198754;
    border: 1px solid #c3e6cb;
}

.supabase-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.supabase-close-btn:hover {
    color: #333;
}