﻿:root {
    --primary: #8A2BE2;
    --secondary: #DA70D6;
    --accent: #FF8C00;
    --dark: #2E2E3A;
    --light: #F8F9FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--dark);
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 200%;
    height: 200%;
    z-index: 0;
    top: -50%;
    left: -50%;
}

.login-container {
    /*width: 380px;*/
    background: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1;
    position: relative;
    backdrop-filter: blur(5px);
    /*border: 1px solid rgba(255, 255, 255, 0.2);*/
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: float 6s ease-in-out infinite;
}

.login-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .login-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
        transform: rotate(30deg);
        animation: shine 5s infinite;
    }

    .login-header h1 {
        font-size: 32px;
        margin-bottom: 5px;
        font-weight: 700;
        position: relative;
        text-shadow: 0 2px 5px rgba(0,0,0,0.1);
        color:#fff;
    }

    .login-header p {
        font-size: 14px;
        opacity: 0.9;
        position: relative;
    }

.login-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--dark);
        font-size: 14px;
    }

.input-wrapper {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: rgba(255,255,255,0.8);
}

    .form-group input:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
    }

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 18px;
}

.forgot-password {
    text-align: right;
    margin-bottom: 25px;
}

    .forgot-password a {
        color: var(--primary);
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        transition: all 0.3s;
        display: inline-flex;
        align-items: center;
    }

        .forgot-password a:hover {
            color: var(--accent);
        }

        .forgot-password a::after {
            content: '→';
            margin-left: 5px;
            transition: transform 0.3s;
        }

        .forgot-password a:hover::after {
            transform: translateX(3px);
        }

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
}

    .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: 0.5s;
    }

    .login-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
    }

        .login-btn:hover::before {
            left: 100%;
        }

.login-footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #7f8c8d;
    border-top: 1px solid rgba(0,0,0,0.05);
}

    .login-footer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
        position: relative;
    }

        .login-footer a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--accent);
            transition: width 0.3s;
        }

        .login-footer a:hover::after {
            width: 100%;
        }

#otpContainer .form-control {
    padding-left: 2.5rem;
}

#otpContainer i.position-absolute {
    font-size: 1rem;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) perspective(1000px) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-10px) perspective(1000px) rotateX(2deg) rotateY(2deg);
    }
}

@keyframes shine {
    0% {
        transform: rotate(30deg) translate(-10%, -10%);
    }

    100% {
        transform: rotate(30deg) translate(10%, 10%);
    }
}
