/* Login Page Optimized Styles */

/* Fix header scrolling */
.component-navbar__navbar-public,
.component-navbar__navbar-private,
.navbar,
.navbar-fixed-top,
.fixed-top {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
}

body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    z-index: 10;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #1f2a37;
    transform: translateY(-50%) scale(1.1);
}

/* Login Form Container */
.login-form-container {
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* 3D Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Floating Cubes */
.floating-cube {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(31, 41, 55, 0.3);
    animation: floatCube 8s ease-in-out infinite;
}

.cube-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.cube-2 {
    top: 70%;
    right: 15%;
    animation-delay: 3s;
    animation-duration: 10s;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.cube-3 {
    top: 40%;
    left: 5%;
    animation-delay: 6s;
    animation-duration: 14s;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

/* Floating Spheres */
.floating-sphere {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #1f2937);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(31, 41, 55, 0.4);
    animation: floatSphere 10s ease-in-out infinite;
}

.sphere-1 {
    top: 20%;
    right: 20%;
    animation-delay: 2s;
    animation-duration: 15s;
}

.sphere-2 {
    bottom: 25%;
    left: 20%;
    animation-delay: 7s;
    animation-duration: 11s;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #059669);
}

/* Floating Pyramids */
.floating-pyramid {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid #1f2937;
    animation: floatPyramid 9s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(31, 41, 55, 0.3));
}

.pyramid-1 {
    top: 60%;
    right: 10%;
    animation-delay: 4s;
    animation-duration: 13s;
    border-bottom-color: #374151;
}

.pyramid-2 {
    top: 10%;
    left: 25%;
    animation-delay: 8s;
    animation-duration: 16s;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid #7c3aed;
}

/* Floating Rings */
.floating-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #1f2937, #374151, #059669, #7c3aed);
    background-clip: padding-box;
    animation: floatRing 12s linear infinite;
}

.ring-1 {
    top: 30%;
    right: 5%;
    animation-delay: 1s;
    animation-duration: 18s;
    width: 80px;
    height: 80px;
}

.ring-2 {
    bottom: 15%;
    right: 30%;
    animation-delay: 5s;
    animation-duration: 14s;
    width: 120px;
    height: 120px;
    border-width: 2px;
}

/* 3D Animations */
@keyframes floatCube {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: translateY(-20px) rotateX(90deg) rotateY(45deg) rotateZ(15deg);
    }
    50% {
        transform: translateY(-10px) rotateX(180deg) rotateY(90deg) rotateZ(30deg);
    }
    75% {
        transform: translateY(-30px) rotateX(270deg) rotateY(135deg) rotateZ(45deg);
    }
}

@keyframes floatSphere {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
    33% {
        transform: translateY(-25px) rotateX(120deg) rotateY(120deg);
    }
    66% {
        transform: translateY(-15px) rotateX(240deg) rotateY(240deg);
    }
}

@keyframes floatPyramid {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: translateY(-20px) rotateX(180deg) rotateY(180deg);
    }
}

@keyframes floatRing {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-20px) rotate(360deg);
    }
}

.login-form-card {
    max-width: 420px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    padding: 2.5rem;
    margin: 0 1rem;
    position: relative;
    z-index: 10;
    transform: perspective(1000px) rotateX(2deg);
    transition: all 0.3s ease;
}

.login-form-card:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.login-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-form-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.login-form-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.login-form-tagline {
    color: #1f2a37;
    font-size: 0.75rem;
    font-style: italic;
}

/* Form Fields */
.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #1f2a37;
    box-shadow: 0 0 0 3px rgba(106, 76, 190, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.input-with-icon .form-input {
    padding-left: 2.5rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-checkbox {
    display: flex;
    align-items: center;
}

.remember-checkbox input {
    margin-right: 0.5rem;
    accent-color: #1f2a37;
}

.remember-checkbox label {
    color: #374151;
    font-size: 0.875rem;
    margin: 0;
    cursor: pointer;
}

.forgot-link {
    color: #1f2a37;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.forgot-link:hover {
    color: #2a3a4a;
    text-decoration: underline;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 1.5rem;
}

.login-button:hover {
    background: #374151;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.login-button:active {
    transform: translateY(0);
}

.button-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* Signup Section */
.signup-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.signup-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.signup-link {
    color: #1f2a37;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.signup-link:hover {
    color: #2a3a4a;
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border-left-color: #ef4444;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border-left-color: #22c55e;
}

.alert-icon {
    margin-right: 0.5rem;
}

/* Support Widget */
.support-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.support-icon {
    width: 60px;
    height: 60px;
    background-color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: supportPulse 2s infinite;
    color: #ffffff;
}

.support-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.support-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.support-options.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.support-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.support-option.whatsapp {
    background-color: #25D366;
    color: #ffffff;
}

.support-option.whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #ffffff;
    text-decoration: none;
}

.support-option.email {
    background: linear-gradient(45deg, #ffffff 0%, #EA4335 50%, #ffffff 100%);
    color: #EA4335;
    animation: whiteRedColors 2s ease-in-out infinite;
}

.support-option.email:hover {
    background: linear-gradient(45deg, #EA4335 0%, #ffffff 50%, #EA4335 100%);
    transform: scale(1.1);
    color: #ffffff;
    text-decoration: none;
    animation: whiteRedColorsHover 1s ease-in-out infinite;
}

/* Animations */
@keyframes supportPulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(0, 0, 0, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

@keyframes whiteRedColors {
    0% {
        background: linear-gradient(45deg, #ffffff 0%, #EA4335 50%, #ffffff 100%);
    }
    50% {
        background: linear-gradient(45deg, #EA4335 0%, #ffffff 50%, #EA4335 100%);
    }
    100% {
        background: linear-gradient(45deg, #ffffff 0%, #EA4335 50%, #ffffff 100%);
    }
}

@keyframes whiteRedColorsHover {
    0% {
        background: linear-gradient(45deg, #EA4335 0%, #ffffff 50%, #EA4335 100%);
    }
    50% {
        background: linear-gradient(45deg, #ffffff 0%, #EA4335 50%, #ffffff 100%);
    }
    100% {
        background: linear-gradient(45deg, #EA4335 0%, #ffffff 50%, #EA4335 100%);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-form-card {
        margin: 0 0.5rem;
        padding: 2rem 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .support-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .support-icon {
        width: 50px;
        height: 50px;
    }
    
    .support-option {
        width: 45px;
        height: 45px;
    }
    
    /* Hide 3D animations on mobile for better performance */
    .floating-elements {
        display: none;
    }
    
    .login-form-card {
        transform: none;
        backdrop-filter: none;
        background: white;
    }
    
    .login-form-card:hover {
        transform: translateY(-2px);
    }
}

