@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a4d80 0%, #2563a8 25%, #4a8fd9 50%, #7eb6ff 75%, #a8d0ff 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px 45px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(126, 182, 255, 0.15), transparent);
    transform: rotate(45deg);
    pointer-events: none;
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a4d80 0%, #4a8fd9 50%, #7eb6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 16px;
    color: #64748b;
    font-weight: 400;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #94a3b8;
    transition: all 0.3s ease;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    height: 60px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 0 20px 0 55px;
    font-size: 16px;
    color: #334155;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-wrapper input:focus {
    border-color: #7eb6ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(126, 182, 255, 0.15);
}

.input-wrapper input:focus ~ i {
    color: #7eb6ff;
}

.submit-btn {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #4a8fd9 0%, #7eb6ff 50%, #5a9eff 100%);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(126, 182, 255, 0.4);
    position: relative;
    overflow: hidden;
}

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

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

.submit-btn i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(126, 182, 255, 0.5);
    background: linear-gradient(135deg, #5a9eff 0%, #8ec5ff 50%, #6aa8ff 100%);
}

.submit-btn:hover i {
    transform: translateX(5px);
}

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

.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 182, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(126, 182, 255, 0.3);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
    -webkit-text-fill-color: #334155 !important;
    transition: background-color 5000s ease-in-out 0s;
    border-color: #7eb6ff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        padding: 40px 30px;
        border-radius: 25px;
    }

    .login-title {
        font-size: 30px;
    }

    .login-subtitle {
        font-size: 15px;
    }

    .input-wrapper input {
        height: 55px;
        font-size: 15px;
    }

    .submit-btn {
        height: 55px;
        font-size: 17px;
    }

    .circle-1 {
        width: 200px;
        height: 200px;
    }

    .circle-2 {
        width: 150px;
        height: 150px;
    }

    .circle-3 {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .login-card {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .card-header {
        margin-bottom: 30px;
    }

    .login-title {
        font-size: 28px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .input-wrapper input {
        height: 52px;
        font-size: 14px;
        padding: 0 15px 0 50px;
    }

    .input-wrapper i {
        left: 16px;
        font-size: 20px;
    }

    .submit-btn {
        height: 52px;
        font-size: 16px;
    }
}