﻿/* ========================================
   COHO GAHO V15 - Ultra Modern Login Styles
   File: coho/css/zeud.css
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    background: #1a1a2e;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab, #667eea, #764ba2);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating Particles */
.particle-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    pointer-events: none;
    opacity: 0.3;
    animation: floatParticle 20s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Glassmorphism Card */
.glass-card {
    width: 100%;
    max-width: 450px;
    margin: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37), inset 0 0 30px rgba(255, 255, 255, 0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
    animation: cardEntrance 1s ease-out;
}

@keyframes cardEntrance {
    0% {
        transform: translateY(30px) scale(0.9);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Glass Card Shimmer Effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient( 45deg, transparent, rgba(255, 255, 255, 0.1), transparent );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Logo Styling */
.logo-container {
    position: relative;
    display: inline-block;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-glow {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    transition: all 0.3s ease;
}

.logo-container:hover .logo-glow {
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.9));
    transform: scale(1.05);
}

/* App Title */
.app-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: titleGlow 2s ease-in-out infinite alternate;
    margin-bottom: 30px !important;
}

@keyframes titleGlow {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

/* Modern Input Groups */
.modern-input-group {
    position: relative;
    margin-bottom: 25px;
    animation: slideInFromRight 0.6s ease-out;
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(30px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.modern-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 15px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

    .modern-input:focus {
        outline: none;
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(102, 126, 234, 0.6);
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 0 20px rgba(102, 126, 234, 0.4);
        transform: translateY(-2px);
    }

    .modern-input::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    .modern-input:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.input-icon {
    position: absolute;
    left: 15px;
    top: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.modern-input:focus ~ .input-icon {
    color: #667eea;
    transform: scale(1.1);
}

.input-error {
    position: absolute;
    bottom: -20px;
    left: 15px;
    color: #ff6b6b;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .input-error.show {
        opacity: 1;
    }

/* Captcha Container */
.captcha-container {
    position: relative;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    animation: captchaEntry 0.8s ease-out 0.3s both;
    min-height: 120px;
}

@keyframes captchaEntry {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Captcha Overlay (when disabled) */
.captcha-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

    .captcha-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .captcha-overlay i {
        font-size: 30px;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 10px;
    }

    .captcha-overlay span {
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
        text-align: center;
        padding: 0 20px;
    }

/* Captcha Content */
.captcha-content {
    transition: all 0.3s ease;
}

.captcha-container.disabled .captcha-content {
    filter: blur(2px);
    opacity: 0.3;
    pointer-events: none;
}

.captcha-title {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Slider Wrapper */
.slider-wrapper {
    position: relative;
    height: 60px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(102, 126, 234, 0.1) 50%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2), 0 5px 20px rgba(102, 126, 234, 0.2);
    touch-action: none;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Slider Button */
.slider-btn {
    position: absolute;
    width: 52px;
    height: 52px;
    left: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.2);
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none;
}

    .slider-btn:active {
        cursor: grabbing;
    }

    .slider-btn:hover:not(.validated):not(.locked) {
        transform: scale(1.1);
        box-shadow: 0 6px 30px rgba(102, 126, 234, 0.7), inset 0 0 15px rgba(255, 255, 255, 0.3);
    }

    .slider-btn.dragging {
        transform: scale(1.15);
        box-shadow: 0 8px 40px rgba(102, 126, 234, 0.9), inset 0 0 20px rgba(255, 255, 255, 0.4);
    }

    .slider-btn i {
        color: white;
        font-size: 24px;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .slider-btn.validated,
    .slider-btn.success {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        box-shadow: 0 4px 20px rgba(40, 167, 69, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.2);
        animation: successPulse 0.6s ease;
    }

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.slider-btn.locked {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Slider Track Success State */
.slider-track.slider-success {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
}

/* Slider Text */
.slider-text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
    pointer-events: none;
    transition: all 0.3s ease;
}

    .slider-text.success {
        color: #28a745;
        animation: fadeInScale 0.5s ease;
    }

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Magic Particles */
.magic-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    top: 0;
    left: 0;
}

.particle-orb {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particleFloat 2s ease-out forwards;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

/* Security Badge */
.security-badge {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

    .security-badge i {
        font-size: 20px;
        animation: shieldRotate 3s ease-in-out infinite;
    }

@keyframes shieldRotate {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

.badge-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 20px;
    animation: badgePulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
    }
}

/* Modern Button */
.modern-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .modern-btn:disabled {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
        cursor: not-allowed;
        box-shadow: none;
        opacity: 0.5;
    }

    .modern-btn:not(:disabled):hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    }

    .modern-btn:not(:disabled):active {
        transform: translateY(-1px);
    }

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    position: relative;
    z-index: 2;
    font-size: 18px;
}

.btn-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.modern-btn:not(:disabled):active .btn-ripple {
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Mobile Indicator */
.mobile-indicator {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    animation: fadeIn 1s ease;
}

    .mobile-indicator i {
        margin-right: 5px;
    }

/* Success Checkmark */
.success-checkmark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .success-checkmark i {
        color: white;
        font-size: 50px;
    }

    .success-checkmark.show {
        display: flex;
        animation: successCheckmark 0.8s ease forwards;
    }

@keyframes successCheckmark {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

    .loading-overlay.show {
        display: flex;
    }

.quantum-spinner {
    width: 80px;
    height: 80px;
    position: relative;
}

    .quantum-spinner div {
        position: absolute;
        width: 100%;
        height: 100%;
        border: 4px solid transparent;
        border-top-color: #667eea;
        border-radius: 50%;
        animation: quantumSpin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    }

        .quantum-spinner div:nth-child(2) {
            border-top-color: #764ba2;
            animation-delay: 0.15s;
        }

        .quantum-spinner div:nth-child(3) {
            border-top-color: #f093fb;
            animation-delay: 0.3s;
        }

@keyframes quantumSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .glass-card {
        margin: 10px;
        padding: 30px 20px;
        border-radius: 20px;
    }

    .app-title {
        font-size: 1.5rem;
    }

    .modern-input {
        font-size: 16px;
        padding: 12px 15px 12px 45px;
    }

    .input-icon {
        font-size: 18px;
    }

    .captcha-container {
        padding: 15px;
    }

    .slider-wrapper {
        height: 50px;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
    }

        .slider-btn i {
            font-size: 20px;
        }

    .modern-btn {
        padding: 15px;
        font-size: 14px;
    }

    .mobile-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .glass-card {
        margin: 5px;
        padding: 25px 15px;
    }

    .app-title {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .logo-glow {
        width: 80px;
    }

    .modern-input-group {
        margin-bottom: 20px;
    }

    .security-badge {
        font-size: 12px;
        padding: 12px;
    }

        .security-badge i {
            font-size: 16px;
        }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .slider-btn {
        width: 56px;
        height: 56px;
    }

    .slider-wrapper {
        height: 64px;
    }

    .modern-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .slider-btn:hover {
        transform: none;
    }

    .modern-btn:hover {
        transform: none;
    }
}

/* High Resolution Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .glass-card {
        border-width: 0.5px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: #0a0a0a;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* SweetAlert Custom Styles */
.swal2-popup {
    font-size: 1.4rem !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    font-family: inherit !important;
}

.swal2-title {
    color: #667eea !important;
    font-weight: 700 !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px 30px !important;
}

.swal2-cancel {
    background: rgba(108, 117, 125, 0.8) !important;
    border-radius: 10px !important;
}

/* Print Styles */
@media print {
    * {
        display: none !important;
    }
}
