/* Liquid Glass UI - Laravel 2FA System - Deep Eye-Friendly Version */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Deep Animated Gradient Background - Very Subtle */
.gradient-bg {
    background: linear-gradient(
        -45deg,
        #1a1a2e,
        #16213e,
        #0f3460,
        #533483,
        #2d1b69,
        #1a1a2e
    );
    background-size: 400% 400%;
    animation: gradientShift 60s ease infinite;
    min-height: 100vh;
    position: relative;
}

.gradient-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Deep Glass Morphism Effects - Very Soft */
.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.glass-effect::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.02),
        transparent
    );
    transition: left 1.2s ease;
}

.glass-effect:hover::before {
    left: 100%;
}

.glass-effect-strong {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(25px) saturate(130%);
    -webkit-backdrop-filter: blur(25px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-effect-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px) saturate(110%);
    -webkit-backdrop-filter: blur(15px) saturate(110%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.6s ease;
}

.glass-effect-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Text Effects - Very Soft */
.text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.text-shadow-sm {
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.text-glow {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

/* Input Styling - Deep and Soft */
.input-glass {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    transition: all 0.5s ease;
}

.input-glass:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    outline: none;
}

.input-glass::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Navigation Styles - Deep and Subtle */
.nav-link {
    position: relative;
    transition: all 0.5s ease;
    overflow: hidden;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.6s ease;
    border-radius: 1px;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Button Styles - Deep and Soft */
.btn-glass {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.btn-glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: left 0.8s ease;
}

.btn-glass:hover::before {
    left: 100%;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.btn-primary-glass {
    background: linear-gradient(135deg, #2d1b69, #533483);
    border: none;
    color: white;
    box-shadow: 0 1px 8px rgba(45, 27, 105, 0.3);
}

.btn-primary-glass:hover {
    background: linear-gradient(135deg, #1a1a2e, #2d1b69);
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(45, 27, 105, 0.4);
}

/* Floating Animations - Very Subtle */
.floating-card {
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-4px) rotate(0.3deg);
    }
    50% {
        transform: translateY(-2px) rotate(0deg);
    }
    75% {
        transform: translateY(-6px) rotate(-0.3deg);
    }
}

/* Glow Effects - Very Soft */
.glow-effect {
    box-shadow: 0 0 15px rgba(45, 27, 105, 0.2);
    transition: all 0.6s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 20px rgba(45, 27, 105, 0.3);
    transform: scale(1.01);
}

/* QR Code Container - Deep Styling */
.qr-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.qr-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 27, 105, 0.03),
        rgba(83, 52, 131, 0.03)
    );
    opacity: 0;
    transition: opacity 0.6s ease;
}

.qr-container:hover::before {
    opacity: 1;
}

.qr-code {
    border: 3px solid #f3f4f6;
    border-radius: 8px;
    transition: all 0.6s ease;
}

.qr-container:hover .qr-code {
    border-color: #2d1b69;
    transform: scale(1.005);
}

/* Loading Spinner - Deep Colors */
.spinner {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #2d1b69;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

/* Alert Styles - Professional Deep Design */
.alert-glass {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.04)
    );
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.alert-glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.alert-glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(
        180deg,
        var(--alert-color),
        var(--alert-color-dark)
    );
}

.alert-glass::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent,
        rgba(255, 255, 255, 0.02),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alert-glass:hover::after {
    opacity: 1;
}

.alert-success {
    --alert-color: #10b981;
    --alert-color-dark: #059669;
    border-left: 6px solid #10b981;
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.12),
        rgba(16, 185, 129, 0.06)
    );
}

.alert-error {
    --alert-color: #ef4444;
    --alert-color-dark: #dc2626;
    border-left: 6px solid #ef4444;
    background: linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.12),
        rgba(239, 68, 68, 0.06)
    );
}

.alert-warning {
    --alert-color: #f59e0b;
    --alert-color-dark: #d97706;
    border-left: 6px solid #f59e0b;
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.12),
        rgba(245, 158, 11, 0.06)
    );
}

.alert-info {
    --alert-color: #3b82f6;
    --alert-color-dark: #2563eb;
    border-left: 6px solid #3b82f6;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.12),
        rgba(59, 130, 246, 0.06)
    );
}

/* Error message specific styling */
.alert-glass .flex {
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.alert-glass .fas {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.125rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.alert-glass .text-white {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.alert-glass ul {
    margin-top: 0.75rem;
    padding-left: 2rem;
    list-style: none;
}

.alert-glass li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.95;
    position: relative;
    padding-left: 1.5rem;
}

.alert-glass li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--alert-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Success alert specific */
.alert-success .fas {
    color: #10b981;
}

/* Error alert specific */
.alert-error .fas {
    color: #ef4444;
}

/* Warning alert specific */
.alert-warning .fas {
    color: #f59e0b;
}

/* Info alert specific */
.alert-info .fas {
    color: #3b82f6;
}

/* Card Hover Effects - Very Gentle */
.card-hover {
    transition: all 0.6s ease;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-2px) scale(1.005);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-effect {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .gradient-bg {
        background-size: 300% 300%;
        animation-duration: 80s;
    }

    .floating-card {
        animation: none;
    }
}

/* Custom Scrollbar - Deep */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Focus States - Deep */
*:focus {
    outline: 2px solid rgba(45, 27, 105, 0.4);
    outline-offset: 2px;
}

/* Selection - Deep */
::selection {
    background: rgba(45, 27, 105, 0.2);
    color: white;
}

/* Print Styles */
@media print {
    .glass-effect,
    .gradient-bg {
        background: white !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}
