﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow: hidden;
}

.login-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    overflow: hidden;
}

.login-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(46, 204, 113, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(52, 152, 219, 0.15) 0%, transparent 50%);
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 12s ease-in-out infinite;
}

.login-orb-1 {
    width: 400px;
    height: 400px;
    background: #2ecc71;
    top: -100px;
    left: -100px;
}

.login-orb-2 {
    width: 350px;
    height: 350px;
    background: #3498db;
    bottom: -80px;
    right: -80px;
    animation-delay: -4s;
}

.login-orb-3 {
    width: 250px;
    height: 250px;
    background: #9b59b6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.95);
    }
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: cardIn 0.6s ease-out;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-logo {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.4);
}

    .brand-logo i {
        font-size: 34px;
        color: #fff;
    }

.login-brand h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.login-brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.login-form .form-floating > .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 12px;
    height: 56px;
}

    .login-form .form-floating > .form-control:focus {
        background: rgba(255, 255, 255, 0.1);
        border-color: #2ecc71;
        box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
        color: #fff;
    }

.login-form .form-floating > label {
    color: rgba(255, 255, 255, 0.6);
    padding-left: 14px;
}

.login-form .form-floating > .form-control:focus ~ label,
.login-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #2ecc71;
    background: transparent;
}

.login-form .form-check-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.login-form .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

    .login-form .form-check-input:checked {
        background-color: #2ecc71;
        border-color: #2ecc71;
    }

.forgot-link {
    color: #2ecc71;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

    .forgot-link:hover {
        color: #27ae60;
        text-decoration: underline;
    }

.btn-login {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 14px;
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.35);
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(46, 204, 113, 0.5);
        color: #fff;
    }

    .btn-login:active {
        transform: translateY(0);
    }

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 18px;
    z-index: 5;
    padding: 4px;
}

    .toggle-password:hover {
        color: #2ecc71;
    }

.login-footer {
    text-align: center;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.text-danger {
    color: #ff6b6b !important;
}
