/* ===== SALÃO DA REGI - LOGIN MODERNO ===== */
/* Importação da Fonte Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===== VARIÁVEIS DE CORES ===== */
:root {
    /* Paleta Rosa e Preta */
    --primary-pink: #ff69b4;
    --secondary-pink: #ff1493;
    --soft-pink: #ffb6c1;
    --rose-gold: #f4a261;
    --deep-black: #0a0a0a;
    --charcoal: #1a1a1a;
    --dark-gray: #ffffff;
    --light-gray: #f8f8f8;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #ff1493 0%, #ff69b4 50%, #f4a261 100%);
    --gradient-secondary: linear-gradient(45deg, #0a0a0a 0%, #2d2d2d 50%, #1a1a1a 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* Sombras */
    --shadow-glow: 0 0 40px rgba(255, 20, 147, 0.3);
    --shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 8px 32px rgba(255, 105, 180, 0.2);
    
    /* Transições */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: var(--deep-black);
    position: relative;
}

/* ===== BACKGROUND 3D COM ELEMENTOS DE SALÃO ===== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    background: var(--gradient-secondary);
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 20, 147, 0.1) 0%, rgba(10, 10, 10, 0.8) 70%);
    z-index: 2;
}

/* Elementos Flutuantes do Salão */
.beauty-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    background: var(--gradient-primary);
    opacity: 0.1;
    filter: blur(1px);
}

.element-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -150px;
    animation-delay: 0s;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.element-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -100px;
    animation-delay: 2s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.element-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 20%;
    animation-delay: 4s;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.element-4 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 10%;
    animation-delay: 1s;
    transform: rotate(45deg);
}

.element-5 {
    width: 250px;
    height: 250px;
    top: 40%;
    left: 70%;
    animation-delay: 3s;
    clip-path: circle(40% at 50% 50%);
}

.element-6 {
    width: 120px;
    height: 120px;
    top: 5%;
    left: 40%;
    animation-delay: 5s;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateY(-20px) rotate(90deg) scale(1.1); 
    }
    50% { 
        transform: translateY(0px) rotate(180deg) scale(0.9); 
    }
    75% { 
        transform: translateY(-10px) rotate(270deg) scale(1.05); 
    }
}

/* ===== CONTAINER PRINCIPAL ===== */
.main-container {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== CONTAINER DE LOGIN MODERNO ===== */
.login-container {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 30px;
    border: 2px solid transparent;
    background-image: var(--gradient-glass);
    background-clip: padding-box;
    box-shadow: 
        var(--shadow-deep),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 60px rgba(255, 20, 147, 0.1);
    padding: 50px 40px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-bounce);
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 30px 30px 0 0;
}

.login-container.animate-in {
    transform: translateY(0);
    opacity: 1;
}

/* ===== HEADER DO LOGIN ===== */
.login-header {
    margin-bottom: 40px;
}

.logo-container {
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 8px rgba(255, 20, 147, 0.3));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.salon-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.salon-subtitle {
    font-size: 1rem;
    color: var(--soft-pink);
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* ===== FORMULÁRIO ===== */
.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

/* Containers de Input Modernos */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-pink);
    font-size: 1.2rem;
    z-index: 2;
    transition: var(--transition-smooth);
}

.form-control {
    width: 100%;
    padding: 18px 20px 18px 55px;
    background: rgba(45, 45, 45, 0.8);
    border: 2px solid rgba(255, 105, 180, 0.2);
    border-radius: 15px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    outline: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    border-color: var(--primary-pink);
    background: rgba(45, 45, 45, 0.95);
    box-shadow: 
        0 0 0 3px rgba(255, 105, 180, 0.1),
        inset 0 1px 3px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.form-control:focus + .floating-label,
.form-control:not(:placeholder-shown) + .floating-label {
    transform: translateY(-35px) scale(0.85);
    color: var(--primary-pink);
}

.form-control::placeholder {
    color: rgb(255, 255, 255);
    transition: var(--transition-smooth);
}

.form-control:focus::placeholder {
    opacity: 0;
    transform: translateX(10px);
}

/* Labels Flutuantes */
.floating-label {
    position: absolute;
    left: 55px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 400;
    pointer-events: none;
    transition: var(--transition-smooth);
    background: linear-gradient(to bottom, transparent 0%, rgba(45, 45, 45, 0.8) 20%, rgba(45, 45, 45, 0.8) 80%, transparent 100%);
    padding: 0 8px;
}

/* Toggle de Senha */
.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ff1493;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--primary-pink);
}

/* ===== BOTÃO DE LOGIN MODERNO ===== */
.btn-login {
    width: 100%;
    padding: 18px 30px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 15px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        var(--shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(255, 20, 147, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-text {
    transition: var(--transition-smooth);
}

.btn-icon {
    transition: var(--transition-smooth);
}

.btn-login:hover .btn-icon {
    transform: translateX(5px);
}

/* ===== FOOTER ===== */
.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 105, 180, 0.1);
}

.login-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 300;
    margin: 0;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-pink);
}

/* ===== RESPONSIVIDADE MOBILE AVANÇADA ===== */

/* Tablets */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }
    
    .login-container {
        padding: 40px 30px 30px;
        max-width: 400px;
        border-radius: 25px;
    }
    
    .salon-title {
        font-size: 1.9rem;
    }
    
    .logo-icon {
        font-size: 3rem;
    }
    
    .form-control {
        padding: 16px 18px 16px 50px;
        font-size: 0.95rem;
    }
    
    .input-icon {
        left: 16px;
        font-size: 1.1rem;
    }
    
    .floating-label {
        left: 50px;
        font-size: 0.95rem;
    }
    
    .btn-login {
        padding: 16px 25px;
        font-size: 1rem;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    .main-container {
        padding: 10px;
        min-height: 100vh;
    }
    
    .login-container {
        padding: 30px 20px 25px;
        max-width: 350px;
        width: 95%;
        border-radius: 20px;
        margin: 20px auto;
    }
    
    .salon-title {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .salon-subtitle {
        font-size: 0.9rem;
    }
    
    .logo-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .login-header {
        margin-bottom: 30px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 14px 16px 14px 45px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .input-icon {
        left: 14px;
        font-size: 1rem;
    }
    
    .floating-label {
        left: 45px;
        font-size: 0.9rem;
    }
    
    .toggle-password {
        right: 14px;
        font-size: 1rem;
    }
    
    .btn-login {
        padding: 14px 20px;
        font-size: 0.95rem;
        border-radius: 12px;
        gap: 8px;
    }
    
    .login-footer {
        padding-top: 15px;
    }
    
    .login-footer p {
        font-size: 0.8rem;
    }
    
    /* Elementos flutuantes menores no mobile */
    .floating-element {
        opacity: 0.05;
    }
    
    .element-1 { width: 200px; height: 200px; }
    .element-2 { width: 150px; height: 150px; }
    .element-3 { width: 100px; height: 100px; }
    .element-4 { width: 80px; height: 80px; }
    .element-5 { width: 180px; height: 180px; }
    .element-6 { width: 90px; height: 90px; }
}

/* Smartphones pequenos */
@media (max-width: 360px) {
    .login-container {
        padding: 25px 15px 20px;
        width: 98%;
    }
    
    .salon-title {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        font-size: 2.2rem;
    }
    
    .form-control {
        padding: 12px 14px 12px 40px;
        font-size: 0.85rem;
    }
    
    .input-icon {
        left: 12px;
        font-size: 0.95rem;
    }
    
    .floating-label {
        left: 40px;
        font-size: 0.85rem;
    }
    
    .toggle-password {
        right: 12px;
        font-size: 0.95rem;
    }
    
    .btn-login {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}

/* Landscape no mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .main-container {
        padding: 5px;
    }
    
    .login-container {
        padding: 20px 25px 15px;
        margin: 10px auto;
    }
    
    .login-header {
        margin-bottom: 20px;
    }
    
    .logo-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .salon-title {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }
    
    .salon-subtitle {
        font-size: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .login-footer {
        padding-top: 10px;
    }
}

/* Acessibilidade e melhorias UX */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-element {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --deep-black: #000000;
        --charcoal: #111111;
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .login-container {
        border: 3px solid var(--primary-pink);
    }
    
    .form-control {
        border-width: 3px;
    }
}
