﻿
:root {
    --primary: #ff2a2a;
    --primary-dark: #cc0000;
    --dark: #0a0a0a;
    --darker: #050505;
    --light: #f5f5f5;
    --glass: rgba(15, 15, 15, 0.75);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: url('https://images.unsplash.com/photo-1519751138087-5bf79df62d5b?q=80&w=2070&auto=format&fit=crop') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(10, 0, 0, 0.9), rgba(30, 0, 0, 0.7));
        z-index: -1;
    }

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 42, 42, 0.2);
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.1), 0 0 20px rgba(255, 0, 0, 0.1) inset;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: floatIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .login-container::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( 45deg, transparent, rgba(255, 42, 42, 0.1), transparent );
        transform: rotate(45deg);
        z-index: -1;
        animation: shine 6s infinite;
    }

.login-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--light);
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    font-size: 1.8rem;
}

    .login-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: var(--primary);
        margin: 0.5rem auto;
        border-radius: 3px;
    }

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(255, 42, 42, 0.3);
        background: rgba(30, 30, 30, 0.7);
    }

.form-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.75rem;
    background: var(--darker);
    padding: 0 0.5rem;
    color: var(--primary);
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .checkbox-container input {
        margin-right: 0.5rem;
        appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid var(--primary);
        border-radius: 4px;
        position: relative;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .checkbox-container input:checked {
            background: var(--primary);
        }

            .checkbox-container input:checked::after {
                content: '✓';
                position: absolute;
                color: white;
                font-size: 0.8rem;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }

    .checkbox-container label {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9rem;
        cursor: pointer;
    }

.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 42, 42, 0.3);
    margin-bottom: 1.5rem;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 42, 42, 0.4);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.links-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

    .links-container a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 0.85rem;
        text-align: center;
        transition: all 0.2s ease;
    }

        .links-container a:hover {
            color: var(--primary);
        }

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 0 1rem;
    }

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .social-btn:hover {
        background: rgba(255, 42, 42, 0.1);
        border-color: var(--primary);
        color: white;
    }

    .social-btn i {
        margin-right: 0.5rem;
        font-size: 1.1rem;
    }

.text-danger {
    color: #ff4d4d !important;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(20deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Floating particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 42, 42, 0.3);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

