/* Professional Login & Signup Page Redesign */

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* Background with Professional Overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    backdrop-filter: blur(15px);
    z-index: -1;
}

/* Main Container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Login Form Container */
.login-form-container {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.15),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

/* Animated Border */
.login-form-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #FFD700 25%, 
        #FFA500 50%, 
        #FFD700 75%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: borderFlow 4s ease-in-out infinite;
}

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

/* Logo Section */
.login-logo {
    text-align: center;
    margin-bottom: 3rem;
}

.login-logo i {
    font-size: 3.5rem;
    color: #FFD700;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.6));
    animation: skullPulse 3s ease-in-out infinite;
}

@keyframes skullPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.6));
    }
    50% { 
        transform: scale(1.05) rotate(2deg); 
        filter: drop-shadow(0 0 35px rgba(255, 215, 0, 0.8));
    }
}

.login-logo h1 {
    font-family: "Creepster", cursive;
    font-size: 2.8rem;
    color: #FFD700;
    margin: 0 0 0.8rem 0;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.3);
    letter-spacing: 2px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #FFD700;
    font-weight: 500;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.form-group input {
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-group input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Input focus effect on icon */
.form-group:focus-within .form-icon {
    color: #FFD700;
    transform: translateY(-50%) scale(1.1);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Floating label effect */
.form-group {
    position: relative;
    padding-top: 1.2rem;
}

.form-group label {
    position: absolute;
    top: 1.2rem;
    left: 3.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    opacity: 0.8;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    transform: translateY(-1.8rem) translateX(-0.5rem) scale(0.8);
    opacity: 1;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Input padding adjustment for floating label */
.form-group input {
    padding-top: 1.6rem;
    padding-bottom: 0.8rem;
}

/* Password strength indicator */
.password-strength {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.password-strength::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #dc3545;
    transition: width 0.3s ease, background 0.3s ease;
}

.password-strength.weak::after {
    width: 30%;
    background: #dc3545;
}

.password-strength.medium::after {
    width: 60%;
    background: #ffc107;
}

.password-strength.strong::after {
    width: 100%;
    background: #28a745;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.form-group input.valid {
    border-color: #28a745;
    box-shadow: 
        0 0 20px rgba(40, 167, 69, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-group input.invalid {
    border-color: #dc3545;
    box-shadow: 
        0 0 20px rgba(220, 53, 69, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Form Icons - Fixed Positioning */
.form-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 215, 0, 0.6);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 0.6rem;
    z-index: 2;
}

.form-group.focused .form-icon {
    color: #FFD700;
    transform: translateY(-50%) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.password-toggle {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 215, 0, 0.6);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 0.6rem;
    padding: 0.5rem;
    border-radius: 50%;
    z-index: 2;
}

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

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 300;
}

.remember-me:hover {
    color: #FFD700;
}

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

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

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: #FFD700;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 14px;
    font-weight: bold;
}

.forgot-password {
    color: rgba(255, 215, 0, 0.8);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
    padding: 0.2rem 0;
}

.forgot-password::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #FFD700;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.forgot-password:hover {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

/* Pulse animation for demo credentials */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Shake animation for invalid input */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-form-container {
        padding: 2rem 1.5rem;
    }
    
    .social-btn span {
        display: none;
    }
    
    .social-btn {
        justify-content: center;
        padding: 0.8rem;
    }
    
    .social-btn i {
        margin: 0;
    }
}

/* Login Button */
.login-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: perspective(1px) translateZ(0);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.login-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.login-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

.login-btn:hover {
    transform: translateY(-2px) perspective(1px) translateZ(0);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.login-btn:active {
    transform: translateY(0) perspective(1px) translateZ(0);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.login-btn .btn-text {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.login-btn .btn-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.login-btn:hover .btn-text {
    transform: translateX(5px);
}

.login-btn:hover .btn-icon {
    transform: translateX(10px);
}

/* Loading state */
.login-btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: button-loading 0.8s ease infinite;
}

@keyframes button-loading {
    to { transform: rotate(360deg); }
}

/* Social Buttons */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-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: 0.5s;
    z-index: -1;
}

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

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.social-btn:hover i {
    transform: scale(1.2);
}

/* Google button specific */
.google-btn:hover {
    background: linear-gradient(to right, rgba(219, 68, 55, 0.1), rgba(244, 180, 0, 0.1), rgba(15, 157, 88, 0.1), rgba(66, 133, 244, 0.1));
    background-size: 300% 100%;
    animation: googleGradient 3s ease infinite;
}

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

/* Facebook button specific */
.facebook-btn:hover {
    background: rgba(59, 89, 152, 0.15);
    border-color: rgba(59, 89, 152, 0.3);
}

.facebook-btn i {
    color: #4267B2;
}

/* Demo Credentials */
.demo-credentials {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.demo-credentials h3 {
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    position: relative;
    display: inline-block;
}

.demo-credentials h3::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 2px;
    background: rgba(255, 215, 0, 0.5);
    bottom: -5px;
    left: 30%;
    border-radius: 2px;
}

.demo-account {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.demo-account:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.demo-account p {
    margin: 0.6rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.5rem;
    text-align: left;
}

.demo-account p::before {
    content: '•';
    color: #FFD700;
    position: absolute;
    left: 0;
}

.demo-account strong {
    color: #FFD700;
    font-weight: 500;
    position: relative;
}

.demo-account strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.demo-account:hover strong::after {
    transform: scaleX(1);
    transform-origin: left;
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.demo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.demo-btn:hover::before {
    width: 100%;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.demo-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.2);
}

.demo-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.demo-btn:hover i {
    transform: rotate(10deg) scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-form-container {
        padding: 2.5rem 2rem;
    }
    
    .login-logo h1 {
        font-size: 2.2rem;
    }
    
    .login-logo i {
        font-size: 3rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1.2rem;
        align-items: flex-start;
    }
    
    .social-login {
        gap: 0.8rem;
    }
    
    .social-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 2rem 1.5rem;
    }
    
    .login-logo h1 {
        font-size: 2rem;
    }
    
    .login-logo i {
        font-size: 2.5rem;
    }
    
    .form-group input {
        padding: 1rem 1rem 1rem 3rem;
    }
    
    .form-icon {
        left: 1rem;
    }
    
    .password-toggle {
        right: 1rem;
    }
    
    .login-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
