/* 
 * Modern Client Portal Stylesheet for Amdark Limited
 * Professional Fraud Recovery Consultation Services
 */

/* CSS Variables for Modern Client Theme */
:root {
    --client-primary: #2563eb;
    --client-primary-dark: #1d4ed8;
    --client-secondary: #0f172a;
    --client-accent: #f59e0b;
    --client-light: #f8fafc;
    --client-dark: #1e293b;
    --client-success: #10b981;
    --client-warning: #f59e0b;
    --client-error: #ef4444;
    --client-gray: #64748b;
    --client-border: #cbd5e1;
    --client-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --client-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --client-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --client-transition: all 0.3s ease;
    --client-transition-fast: all 0.2s ease;
    --z-dropdown: 1000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--client-dark);
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.1) 0%, rgba(30, 58, 138, 0) 20%),
                radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.1) 0%, rgba(30, 58, 138, 0) 20%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Client Header */
.client-header {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--client-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.client-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    flex-shrink: 0;
}

.site-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.client-nav ul {
    display: flex;
    list-style: none;
}

.client-nav ul li {
    margin-left: 1rem;
}

.client-nav ul li a {
    color: #e2e8f0;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: var(--client-transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.client-nav ul li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--client-primary), var(--client-primary-dark));
    z-index: -1;
    border-radius: 30px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.client-nav ul li a:hover::before,
.client-nav ul li a.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.client-nav ul li a:hover,
.client-nav ul li a.active {
    color: white;
    text-decoration: none;
}

/* Dropdown Menu */
.client-nav ul li.dropdown {
    position: relative;
}

.client-nav ul li.dropdown:hover .dropdown-menu,
.client-nav ul li.dropdown .dropdown-menu.active {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--client-shadow);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: var(--z-dropdown);
    backdrop-filter: blur(10px);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    padding: 0.75rem 1rem;
    color: var(--client-dark);
    border-radius: 0;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--client-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: var(--client-transition);
    border-radius: 2px;
}

/* Mobile Menu Toggle Animation */
.menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main Content */
.client-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    position: relative;
}

/* Login Section */
.login-section {
    width: 100%;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--client-shadow-xl);
    max-width: 500px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--client-primary), var(--client-accent));
}

.login-container h1 {
    font-size: 2.2rem;
    color: var(--client-secondary);
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    position: relative;
}

.login-container h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--client-primary), var(--client-accent));
    margin: 0.5rem auto;
    border-radius: 2px;
}

.login-container p {
    text-align: center;
    color: var(--client-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--client-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--client-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--client-transition);
    font-family: 'Open Sans', sans-serif;
    background-color: #f8fafc;
}

.form-control:focus {
    border-color: var(--client-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
    background-color: white;
}

.form-control::placeholder {
    color: #94a3b8;
}

.btn-submit {
    display: inline-block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--client-primary), var(--client-primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--client-transition);
    box-shadow: var(--client-shadow-lg);
    font-family: 'Poppins', sans-serif;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--client-primary-dark), var(--client-primary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-submit:hover::before {
    opacity: 1;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 20px -5px rgba(30, 58, 138, 0.3);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Error Message */
.error-message {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 5px solid #ef4444;
    animation: shake 0.5s ease-in-out;
    box-shadow: var(--client-shadow);
    font-weight: 500;
}

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

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--client-border);
}

.login-footer p {
    margin-bottom: 0.8rem;
}

.login-footer a {
    color: var(--client-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--client-transition);
    position: relative;
}

.login-footer a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--client-primary);
    transition: width 0.3s ease;
}

.login-footer a:hover::after {
    width: 100%;
}

.login-footer a:hover {
    color: var(--client-primary-dark);
}

/* Client Footer */
.client-footer {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.client-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.client-footer-section h3,
.client-footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding-bottom: 0.5rem;
}

.client-footer-section h3::after,
.client-footer-section h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--client-accent), #fbbf24);
    border-radius: 2px;
}

.client-footer-section p {
    color: #cbd5e1;
    line-height: 1.7;
}

.client-footer-section ul {
    list-style: none;
}

.client-footer-section ul li {
    margin-bottom: 0.8rem;
}

.client-footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--client-transition);
    display: flex;
    align-items: center;
}

.client-footer-section ul li a::before {
    content: "→";
    margin-right: 8px;
    color: var(--client-accent);
    font-size: 0.8rem;
}

.client-footer-section ul li a:hover {
    color: white;
    text-decoration: underline;
}

.client-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.client-footer-bottom p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Floating Elements */
.floating {
    position: absolute;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    z-index: 1;
}

.floating:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    animation: float 8s infinite ease-in-out;
}

.floating:nth-child(2) {
    width: 100px;
    height: 100px;
    bottom: 15%;
    right: 10%;
    animation: float 6s infinite ease-in-out reverse;
}

.floating:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 15%;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, 20px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .menu-toggle {
        display: flex;
    }
    
    /* Hide navigation by default on mobile */
    .client-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(15, 23, 42, 0.95);
        box-shadow: var(--client-shadow);
        padding: 1rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 100;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .client-nav.active {
        transform: translateY(0);
    }
    
    .client-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .client-nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .client-nav ul li {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .client-nav ul li a {
        padding: 1rem;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        margin-left: 1rem;
        display: none;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu.active {
        display: block;
    }
    
    .dropdown > a::after {
        content: " ▼";
        font-size: 0.8rem;
        margin-left: 5px;
    }
    
    .dropdown > a.active::after {
        content: " ▲";
    }
    
    .login-container {
        padding: 2rem;
        margin: 1rem;
        border-radius: 16px;
    }
    
    .login-container h1 {
        font-size: 1.8rem;
    }
    
    .client-nav ul li {
        margin: 0.25rem 0.5rem;
    }
    
    .client-footer-content {
        grid-template-columns: 1fr;
    }
    
    body::before {
        background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, rgba(30, 58, 138, 0) 30%);
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .form-control {
        padding: 12px 14px;
    }
    
    .btn-submit {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .client-logo h1 {
        font-size: 1.5rem;
    }
    
    .client-nav ul li {
        margin: 0.25rem;
    }
    
    .client-nav ul li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}