/* Blue & Purple Tech Palette */
:root {
  --primary: #3a86ff;
  --secondary: #8338ec;
  --accent: #ffbe0b;
  --background: #1a1a2e;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, #23244d 50%, var(--secondary) 100%);
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-10px); }
    50% { transform: translateX(10px) translateY(-5px); }
    75% { transform: translateX(-5px) translateY(10px); }
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Login Card */
.login-card {
    background: rgba(26,26,46,0.92);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 8px 32px rgba(58,134,255,0.15);
    border: 1px solid rgba(58,134,255,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #ff0080, #00ff88, #ff6b35, #00d4ff);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
    border-radius: 24px 24px 0 0;
}

.login-card::after {
    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.6s ease;
}

.login-card:hover::after {
    left: 100%;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.logo i {
    font-size: 3rem;
    background: linear-gradient(135deg, #00d4ff, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: techPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

@keyframes techPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
    }
    50% { 
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 0 30px rgba(255, 0, 128, 0.7));
    }
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    margin-top: 10px;
}

/* Form Styles */
.login-form {
    margin-bottom: 40px;
}

.input-group {
    margin-bottom: 30px;
    position: relative;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group label i {
    color: var(--primary);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.input-group input {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid var(--primary);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(58,134,255,0.08);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 
        0 0 0 4px rgba(0, 212, 255, 0.1),
        0 8px 32px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.input-group input::placeholder {
    color: #808080;
}

/* Password Container */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #808080;
    cursor: pointer;
    padding: 8px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.toggle-password:hover {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
}

/* Visual Indicators */
.visual-indicator {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.visual-indicator.valid {
    background: var(--accent);
    border-color: var(--accent);
    animation: techSuccess 0.6s ease;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.visual-indicator.invalid {
    background: #ff6b6b;
    border-color: #ff0080;
    animation: techError 0.6s ease;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

@keyframes techSuccess {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.3) rotate(180deg); }
    100% { transform: translateY(-50%) scale(1) rotate(360deg); }
}

@keyframes techError {
    0%, 100% { transform: translateY(-50%) translateX(0) scale(1); }
    25% { transform: translateY(-50%) translateX(-8px) scale(1.1); }
    75% { transform: translateY(-50%) translateX(8px) scale(1.1); }
}

/* Options */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    color: var(--text-main);
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #ff0080);
    transition: width 0.3s ease;
}

.forgot-password:hover::after {
    width: 100%;
}

.forgot-password:hover {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: gradientMove 3s ease infinite;
    box-shadow: 0 4px 16px rgba(58,134,255,0.2);
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.login-btn::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.6s ease;
}

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

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(0, 212, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--secondary), var(--primary), var(--accent));
}

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

/* Divider */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.divider span {
    background: var(--background);
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Alternative Login */
.alternative-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.alt-login-btn {
    padding: 16px 24px;
    border: 2px solid var(--primary);
    border-radius: 14px;
    background: rgba(26,26,46,0.8);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.alt-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.alt-login-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
    color: #fff;
}

.alt-login-btn.google:hover {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.alt-login-btn.facebook:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

/* Signup Link */
.signup-link {
    text-align: center;
    margin-top: 25px;
}

.signup-link p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.signup-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.signup-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #ff0080);
    transition: width 0.3s ease;
}

.signup-link a:hover::after {
    width: 100%;
}

.signup-link a:hover {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

/* Accessibility Features */
.accessibility-features {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.accessibility-features h3 {
    text-align: center;
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.feature:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
    color: var(--text-main);
}

.feature i {
    color: var(--primary);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 10px rgba(58,134,255,0.5));
}

/* Message Styles */
.success-message {
    background: var(--accent);
    color: #23244d;
    border: 1px solid var(--accent);
}

.error-message {
    background: #ff6b6b;
    color: #fff;
    border: 1px solid #ff6b6b;
}

.info-message {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

/* Background Elements - Replaced hands with tech elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Geometric shapes */
.geometric-shape {
    position: absolute;
    opacity: 0.1;
    animation: techFloat 10s ease-in-out infinite;
    filter: blur(0.5px);
}

.shape-1 {
    top: 15%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00d4ff, #ff0080);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation-delay: 0s;
}

.shape-2 {
    top: 25%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #00ff88, #ff6b35);
    border-radius: 50%;
    animation-delay: 2s;
}

.shape-3 {
    bottom: 35%;
    left: 5%;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff0080, #00d4ff);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation-delay: 4s;
}

.shape-4 {
    bottom: 25%;
    right: 10%;
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #ff6b35, #00ff88);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 6s;
}

/* Floating particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(5) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    background: #00d4ff;
}

.particle:nth-child(6) {
    top: 30%;
    right: 25%;
    animation-delay: 1s;
    background: #ff0080;
}

.particle:nth-child(7) {
    bottom: 40%;
    left: 15%;
    animation-delay: 2s;
    background: #00ff88;
}

.particle:nth-child(8) {
    bottom: 30%;
    right: 20%;
    animation-delay: 3s;
    background: #ff6b35;
}

.particle:nth-child(9) {
    top: 50%;
    left: 30%;
    animation-delay: 4s;
    background: #00d4ff;
}

.particle:nth-child(10) {
    top: 60%;
    right: 35%;
    animation-delay: 5s;
    background: #ff0080;
}

/* Circuit lines */
.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    opacity: 0.1;
    animation: circuitPulse 4s ease-in-out infinite;
}

.circuit-line:nth-child(11) {
    top: 10%;
    left: 0;
    width: 200px;
    height: 1px;
    animation-delay: 0s;
}

.circuit-line:nth-child(12) {
    top: 0;
    right: 20%;
    width: 1px;
    height: 150px;
    background: linear-gradient(180deg, transparent, #ff0080, transparent);
    animation-delay: 1s;
}

.circuit-line:nth-child(13) {
    bottom: 15%;
    left: 0;
    width: 180px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    animation-delay: 2s;
}

.circuit-line:nth-child(14) {
    bottom: 0;
    left: 30%;
    width: 1px;
    height: 120px;
    background: linear-gradient(180deg, transparent, #ff6b35, transparent);
    animation-delay: 3s;
}

@keyframes techFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    50% { 
        transform: translateY(-40px) rotate(20deg) scale(1.2);
        opacity: 0.2;
    }
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-10px) translateX(-15px);
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-30px) translateX(5px);
        opacity: 0.9;
    }
}

@keyframes circuitPulse {
    0%, 100% { 
        opacity: 0.1;
        transform: scaleX(1);
    }
    50% { 
        opacity: 0.3;
        transform: scaleX(1.2);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 700px;
        padding: 15px;
    }
    
    .login-card {
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 600px;
        padding: 15px;
    }
    
    .login-card {
        padding: 40px 30px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 2.5rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .login-card {
        border: 2px solid #fff;
        background: rgba(0, 0, 0, 0.9);
    }
    
    .input-group input {
        border: 2px solid #fff;
        background: rgba(0, 0, 0, 0.8);
    }
    
    .login-btn {
        border: 2px solid #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
input:focus,
button:focus,
a:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.linguosign-logo {
    font-family: 'Pacifico', 'Inter', 'Segoe UI', Arial, sans-serif;
    font-weight: 800;
    font-size: 2.7rem;
    background: linear-gradient(90deg, #00d4ff, #ff0080, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
    font-style: normal;
} 