﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
    overflow: hidden;
    position: relative;
}

    /* Floating background circles */
    body::before, body::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        animation: float 15s infinite ease-in-out;
        pointer-events: none;
    }

    body::before {
        width: 300px;
        height: 300px;
        top: -100px;
        left: -100px;
    }

    body::after {
        width: 400px;
        height: 400px;
        bottom: -150px;
        right: -150px;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) rotate(180deg);
    }
}

/* Login container */
.login-container {
    width: 90%;
    max-width: 380px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    color: white;
    z-index: 1;
    animation: fadeIn 1s ease forwards;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

    .input-group input {
        width: 100%;
        padding: 14px 15px;
        border-radius: 12px;
        border: none;
        outline: none;
        background: rgba(255,255,255,0.2);
        color: white;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .input-group label {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #ddd;
        pointer-events: none;
        transition: all 0.3s ease;
        font-size: 16px;
    }

    .input-group input:focus + label,
    .input-group input:not(:placeholder-shown) + label {
        top: -8px;
        left: 12px;
        font-size: 12px;
        color: #667eea;
        background: rgba(0,0,0,0.3);
        padding: 0 5px;
        border-radius: 5px;
    }

button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    button:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    }

.extra {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

    .extra a {
        color: #fff;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.3s;
    }

        .extra a:hover {
            color: #667eea;
        }

/* Mobile responsiveness */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

        .login-container h2 {
            font-size: 1.3rem;
            margin-bottom: 25px;
        }

    .input-group input {
        padding: 12px;
        font-size: 14px;
    }

    .input-group label {
        font-size: 14px;
    }

    button {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 25px 15px;
    }

        .login-container h2 {
            font-size: 1.2rem;
            margin-bottom: 20px;
        }
}
/*====loader====*/
.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Spinner */
.btn-loader {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.4);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/*=====eye====*/
.password-group {
    position: relative;
}

.toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}