* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #060606;
    color: #F8FAFC;
    overflow-x: hidden;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #060606;
}

::-webkit-scrollbar-thumb {
    background: #22C55E33;
    border-radius: 10px;
}

.green-glow {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.15), 0 0 60px rgba(34, 197, 94, 0.05);
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width .6s, height .6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Login Input */
.login-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px 14px 48px;
    color: #F8FAFC;
    font-size: 15px;
    font-family: 'Inter';
    transition: all .3s;
    outline: none;
}

.login-input:focus {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.login-input::placeholder {
    color: #64748B;
}

.login-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    transition: color .3s;
}

.login-input:focus~.login-input-icon {
    color: #22C55E;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    cursor: pointer;
    transition: color .3s;
    background: none;
    border: none;
}

.password-toggle:hover {
    color: #F8FAFC;
}

/* Social Button */
.social-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #F8FAFC;
    font-size: 14px;
    font-weight: 500;
    transition: all .3s;
    cursor: pointer;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* Checkbox */
.custom-check {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    cursor: pointer;
    transition: all .2s;
    appearance: none;
    flex-shrink: 0;
}

.custom-check:checked {
    background: #22C55E;
    border-color: #22C55E;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23060606' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    pointer-events: all;
}

.modal-content {
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.85) translateY(30px);
    opacity: 0;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    color: #F8FAFC;
    font-size: 14px;
    font-family: 'Inter';
    transition: all .3s;
    outline: none;
}

.modal-input:focus {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.modal-input::placeholder {
    color: #64748B;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 300;
    transform: translateX(120%);
    transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateX(0);
}

/* Background Decoration */
.bg-glow-1 {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-2 {
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Floating Card */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Error shake */
.shake {
    animation: shake .5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

/* Strength Bar */
.strength-bar {
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: all .3s;
}

.strength-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .5s, background .3s;
}

@media(max-width:480px) {
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .modal-content {
        margin: 10px;
        border-radius: 20px;
    }
}